Interface SelectionStrategy
- All Known Implementing Classes:
PartitionSelectionStrategy
,RandomSelectionStrategy
,RoundRobinSelectionStrategy
public interface SelectionStrategy
Interface which defines a generic selection strategy to select a
Endpoint
.- Since:
- 1.0
- Author:
- Michael Nitschinger
-
Method Summary
Modifier and Type Method Description Endpoint
select(CouchbaseRequest request, List<Endpoint> endpoints)
Selects anEndpoint
for the givenCouchbaseRequest
.
-
Method Details
-
select
Selects anEndpoint
for the givenCouchbaseRequest
. 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.- Parameters:
request
- the input request.endpoints
- all the available endpoints.- Returns:
- the selected endpoint.
-