Class RoundRobinSelectionStrategy
java.lang.Object
com.couchbase.client.core.service.strategy.RoundRobinSelectionStrategy
- All Implemented Interfaces:
EndpointSelectionStrategy
public class RoundRobinSelectionStrategy extends Object implements EndpointSelectionStrategy
-
Constructor Summary
Constructors Constructor Description RoundRobinSelectionStrategy()
-
Method Summary
-
Constructor Details
-
RoundRobinSelectionStrategy
public RoundRobinSelectionStrategy()
-
-
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.
-