public class RandomSelectionStrategy extends Object implements SelectionStrategy
| Constructor and Description |
|---|
RandomSelectionStrategy() |
| Modifier and Type | Method and Description |
|---|---|
Endpoint |
select(CouchbaseRequest request,
Endpoint[] endpoints)
Selects an
Endpoint for the given CouchbaseRequest. |
public Endpoint select(CouchbaseRequest request, Endpoint[] endpoints)
SelectionStrategySelects an Endpoint for the given CouchbaseRequest.
If null is returned, it means that no endpoint could be selected and it is up to the calling party to decide what to do next.
select in interface SelectionStrategyrequest - the input request.endpoints - all the available endpoints.Copyright © 2016 Couchbase, Inc.. All rights reserved.