Package com.attivio.service
Class RoundRobinUnlessLocalStrategy
- java.lang.Object
-
- org.apache.curator.x.discovery.strategies.RoundRobinStrategy<AieServiceInfo>
-
- com.attivio.service.RoundRobinUnlessLocalStrategy
-
- All Implemented Interfaces:
org.apache.curator.x.discovery.ProviderStrategy<AieServiceInfo>
public class RoundRobinUnlessLocalStrategy extends org.apache.curator.x.discovery.strategies.RoundRobinStrategy<AieServiceInfo>
A discovery provider strategy that will return the local service instance if available within this process, and uses round-robin if not.
-
-
Constructor Summary
Constructors Constructor Description RoundRobinUnlessLocalStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.curator.x.discovery.ServiceInstance<AieServiceInfo>
getInstance(org.apache.curator.x.discovery.details.InstanceProvider<AieServiceInfo> instanceProvider)
-
-
-
Method Detail
-
getInstance
public org.apache.curator.x.discovery.ServiceInstance<AieServiceInfo> getInstance(org.apache.curator.x.discovery.details.InstanceProvider<AieServiceInfo> instanceProvider) throws java.lang.Exception
- Specified by:
getInstance
in interfaceorg.apache.curator.x.discovery.ProviderStrategy<AieServiceInfo>
- Overrides:
getInstance
in classorg.apache.curator.x.discovery.strategies.RoundRobinStrategy<AieServiceInfo>
- Throws:
java.lang.Exception
-
-