Uses of Class
org.apache.curator.x.discovery.ServiceInstance
-
Packages that use ServiceInstance Package Description org.apache.curator.x.discovery org.apache.curator.x.discovery.details org.apache.curator.x.discovery.strategies -
-
Uses of ServiceInstance in org.apache.curator.x.discovery
Methods in org.apache.curator.x.discovery that return ServiceInstance Modifier and Type Method Description ServiceInstance<T>ServiceInstanceBuilder. build()Return a new instance with the currently set valuesServiceInstance<T>ProviderStrategy. getInstance(InstanceProvider<T> instanceProvider)Given a source of instances, return one of them for a single use.ServiceInstance<T>ServiceProvider. getInstance()Return an instance for a single use.ServiceInstance<T>ServiceDiscovery. queryForInstance(java.lang.String name, java.lang.String id)Return a service instance POJOMethods in org.apache.curator.x.discovery that return types with arguments of type ServiceInstance Modifier and Type Method Description java.util.Collection<ServiceInstance<T>>ServiceProvider. getAllInstances()Return the current available set of instances IMPORTANT: users should not hold on to the instance returned.java.util.List<ServiceInstance<T>>ServiceCache. getInstances()Return the current list of instances.java.util.Collection<ServiceInstance<T>>ServiceDiscovery. queryForInstances(java.lang.String name)Return all known instances for the given serviceMethods in org.apache.curator.x.discovery with parameters of type ServiceInstance Modifier and Type Method Description java.lang.StringUriSpec. build(ServiceInstance<?> serviceInstance)Build into a UriSpec stringjava.lang.StringUriSpec. build(ServiceInstance<?> serviceInstance, java.util.Map<java.lang.String,java.lang.Object> variables)Build into a UriSpec stringvoidServiceProvider. noteError(ServiceInstance<T> instance)Take note of an error connecting to the given instance.voidServiceDiscovery. registerService(ServiceInstance<T> service)Register/re-register a serviceServiceDiscoveryBuilder<T>ServiceDiscoveryBuilder. thisInstance(ServiceInstance<T> thisInstance)Optional - instance that represents the service that is running.voidServiceDiscovery. unregisterService(ServiceInstance<T> service)Unregister/remove a service instancevoidServiceDiscovery. updateService(ServiceInstance<T> service)Update a service -
Uses of ServiceInstance in org.apache.curator.x.discovery.details
Methods in org.apache.curator.x.discovery.details that return ServiceInstance Modifier and Type Method Description ServiceInstance<T>InstanceSerializer. deserialize(byte[] bytes)Deserialize a byte array into an instanceServiceInstance<T>JsonInstanceSerializer. deserialize(byte[] bytes)ServiceInstance<T>ServiceProviderImpl. getInstance()Return an instance for a single use.ServiceInstance<T>ServiceDiscoveryImpl. queryForInstance(java.lang.String name, java.lang.String id)Return a service instance POJOMethods in org.apache.curator.x.discovery.details that return types with arguments of type ServiceInstance Modifier and Type Method Description java.util.Collection<ServiceInstance<T>>ServiceProviderImpl. getAllInstances()Return the current available set of instances IMPORTANT: users should not hold on to the instance returned.java.util.List<ServiceInstance<T>>InstanceProvider. getInstances()Return the current available set of instancesjava.util.List<ServiceInstance<T>>ServiceCacheImpl. getInstances()java.util.Collection<ServiceInstance<T>>ServiceDiscoveryImpl. queryForInstances(java.lang.String name)Return all known instances for the given serviceMethods in org.apache.curator.x.discovery.details with parameters of type ServiceInstance Modifier and Type Method Description protected voidServiceDiscoveryImpl. internalRegisterService(ServiceInstance<T> service)voidServiceProviderImpl. noteError(ServiceInstance<T> instance)voidServiceDiscoveryImpl. registerService(ServiceInstance<T> service)Register/re-register/update a service instancebyte[]InstanceSerializer. serialize(ServiceInstance<T> instance)Serialize an instance into bytesbyte[]JsonInstanceSerializer. serialize(ServiceInstance<T> instance)voidServiceDiscoveryImpl. unregisterService(ServiceInstance<T> service)Unregister/remove a service instancevoidServiceDiscoveryImpl. updateService(ServiceInstance<T> service)Constructors in org.apache.curator.x.discovery.details with parameters of type ServiceInstance Constructor Description ServiceDiscoveryImpl(org.apache.curator.framework.CuratorFramework client, java.lang.String basePath, InstanceSerializer<T> serializer, ServiceInstance<T> thisInstance, boolean watchInstances) -
Uses of ServiceInstance in org.apache.curator.x.discovery.strategies
Methods in org.apache.curator.x.discovery.strategies that return ServiceInstance Modifier and Type Method Description ServiceInstance<T>RandomStrategy. getInstance(InstanceProvider<T> instanceProvider)ServiceInstance<T>RoundRobinStrategy. getInstance(InstanceProvider<T> instanceProvider)ServiceInstance<T>StickyStrategy. getInstance(InstanceProvider<T> instanceProvider)
-