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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R extends Request<? extends Response>>
Endpointselect(R request, List<Endpoint> endpoints)
-
-
-
Method Detail
-
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.
-
-