public class RandomClusterSelectorImpl extends java.lang.Object implements ClusterSelector
ClusterSelector where a random Cluster is selected from the options
presented.| Constructor and Description |
|---|
RandomClusterSelectorImpl() |
| Modifier and Type | Method and Description |
|---|---|
ResourceSelectionResult<R> |
select(C context)
Select a resource from the given set of resources if possible.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitselectpublic ResourceSelectionResult<R> select(@Valid C context) throws ResourceSelectionException
select in interface ResourceSelector<R,C extends ResourceSelectionContext<R>>context - The context specific for this resource selectionResourceSelectionResult instance which contains information about the result of this
invocationResourceSelectionException - When the underlying implementation can't successfully come to a selection
decision