Interface EndpointSelectionStrategy
-
- All Known Implementing Classes:
PartitionSelectionStrategy,RoundRobinSelectionStrategy
public interface EndpointSelectionStrategy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <R extends Request<? extends Response>>
Endpointselect(R request, List<Endpoint> endpoints)
-
-
-
Method Detail
-
select
<R extends Request<? extends Response>> Endpoint select(R request, List<Endpoint> endpoints)
Selects anEndpointfor 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.
- Parameters:
request- the input request.endpoints- all the available endpoints.- Returns:
- the selected endpoint.
-
-