Package | Description |
---|---|
org.apache.curator.x.discovery |
Modifier and Type | Method and Description |
---|---|
ServiceDiscoveryBuilder<T> |
ServiceDiscoveryBuilder.basePath(String basePath)
Required - set the base path to store in ZK
|
static <T> ServiceDiscoveryBuilder<T> |
ServiceDiscoveryBuilder.builder(Class<T> payloadClass)
Return a new builder.
|
ServiceDiscoveryBuilder<T> |
ServiceDiscoveryBuilder.client(CuratorFramework client)
Required - set the client to use
|
ServiceDiscoveryBuilder<T> |
ServiceDiscoveryBuilder.serializer(InstanceSerializer<T> serializer)
optional - change the serializer used (the default is
JsonInstanceSerializer |
ServiceDiscoveryBuilder<T> |
ServiceDiscoveryBuilder.thisInstance(ServiceInstance<T> thisInstance)
Optional - instance that represents the service that is running.
|
Copyright © 2011–2013 The Apache Software Foundation. All rights reserved.