Uses of Class
org.apache.curator.x.discovery.ServiceDiscoveryBuilder
-
Uses of ServiceDiscoveryBuilder in org.apache.curator.x.discovery
Modifier and TypeMethodDescriptionRequired - set the base path to store in ZK, seepathConstructor(DiscoveryPathConstructor)
for alternativestatic <T> ServiceDiscoveryBuilder
<T> Return a new builder.ServiceDiscoveryBuilder.client
(CuratorFramework client) Required - set the client to useServiceDiscoveryBuilder.pathConstructor
(DiscoveryPathConstructor pathConstructor) Required - shape the service tree in ZK, seebasePath(String)
for alternativeServiceDiscoveryBuilder.serializer
(InstanceSerializer<T> serializer) optional - change the serializer used (the default isJsonInstanceSerializer
ServiceDiscoveryBuilder.thisInstance
(ServiceInstance<T> thisInstance) Optional - instance that represents the service that is running.ServiceDiscoveryBuilder.watchInstances
(boolean watchInstances) Optional - if true, watches for changes to locally registered instances (viathisInstance(ServiceInstance)
orServiceDiscovery.registerService(ServiceInstance)
).