Package com.viam.sdk.core.resource
Class ResourceRegistration<ResourceT extends Resource>
java.lang.Object
com.viam.sdk.core.resource.ResourceRegistration<ResourceT>
An object representing a resource to be registered. This object is generic over the ResourceBase,
 and it includes various functionality for the resource, such as creating its RPC client or
 status. If creating a custom Resource type, you should register the resource by creating a
 ResourceRegistration object and registering it to the Registry.
- 
Constructor SummaryConstructorsConstructorDescriptionResourceRegistration(Subtype subtype, String protoServiceName, BiFunction<String, Channel, ResourceT> createRPCClient) ResourceRegistration(Subtype subtype, String protoServiceName, Function<ResourceManager, ResourceRPCService<ResourceT>> createRPCService, BiFunction<String, Channel, ResourceT> createRPCClient) 
- 
Method SummaryModifier and TypeMethodDescription
- 
Constructor Details- 
ResourceRegistrationpublic ResourceRegistration(Subtype subtype, String protoServiceName, Function<ResourceManager, ResourceRPCService<ResourceT>> createRPCService, BiFunction<String, Channel, ResourceT> createRPCClient) 
- 
ResourceRegistration
 
- 
- 
Method Details- 
getCreateRPCService
- 
getCreateRPCClient
- 
getSubtype
- 
getProtoServiceName
 
-