Class PartitionSelectionStrategy
java.lang.Object
com.couchbase.client.core.service.strategy.PartitionSelectionStrategy
- All Implemented Interfaces:
EndpointSelectionStrategy
public class PartitionSelectionStrategy extends Object implements EndpointSelectionStrategy
-
Constructor Summary
Constructors Constructor Description PartitionSelectionStrategy()
-
Method Summary
-
Constructor Details
-
PartitionSelectionStrategy
public PartitionSelectionStrategy()
-
-
Method Details
-
select
public <R extends Request<? extends Response>> Endpoint select(R request, List<Endpoint> endpoints)Description copied from interface:EndpointSelectionStrategy
Selects anEndpoint
for the givenRequest
.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.
- Specified by:
select
in interfaceEndpointSelectionStrategy
- Parameters:
request
- the input request.endpoints
- all the available endpoints.- Returns:
- the selected endpoint.
-