Interface InstanceProvider<T>
-
- All Known Subinterfaces:
ServiceCache<T>
- All Known Implementing Classes:
ServiceCacheImpl
public interface InstanceProvider<T>
Provides a set of available instances for a service so that a strategy can pick one of them
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<ServiceInstance<T>>
getInstances()
Return the current available set of instances
-
-
-
Method Detail
-
getInstances
java.util.List<ServiceInstance<T>> getInstances() throws java.lang.Exception
Return the current available set of instances- Returns:
- instances
- Throws:
java.lang.Exception
- any errors
-
-