ProviderStrategy<T>public class RandomStrategy<T> extends java.lang.Object implements ProviderStrategy<T>
| Constructor | Description |
|---|---|
RandomStrategy() |
| Modifier and Type | Method | Description |
|---|---|---|
ServiceInstance<T> |
getInstance(InstanceProvider<T> instanceProvider) |
Given a source of instances, return one of them for a single use.
|
public ServiceInstance<T> getInstance(InstanceProvider<T> instanceProvider) throws java.lang.Exception
ProviderStrategygetInstance in interface ProviderStrategy<T>instanceProvider - the instance providerjava.lang.Exception - any errorsCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.