public class RoundRobinSelectionStrategy extends Object implements EndpointSelectionStrategy
| Constructor and Description |
|---|
RoundRobinSelectionStrategy() |
| Modifier and Type | Method and Description |
|---|---|
<R extends Request<? extends Response>> |
select(R request,
List<Endpoint> endpoints)
|
public <R extends Request<? extends Response>> Endpoint select(R request, List<Endpoint> endpoints)
EndpointSelectionStrategyEndpoint for the given Request.
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 EndpointSelectionStrategyrequest - the input request.endpoints - all the available endpoints.Copyright © 2021 Couchbase, Inc.. All rights reserved.