Interface EndpointSelector
- All Known Subinterfaces:
EndpointGroup
- All Known Implementing Classes:
DnsAddressEndpointGroup
,DnsServiceEndpointGroup
,DnsTextEndpointGroup
,DynamicEndpointGroup
,Endpoint
,EurekaEndpointGroup
,HealthCheckedEndpointGroup
,PropertiesEndpointGroup
,ZooKeeperEndpointGroup
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface EndpointSelector
Selects an
Endpoint
from an EndpointGroup
.-
Method Summary
Modifier and Type Method Description Endpoint
select(ClientRequestContext ctx)
-
Method Details
-
select
- Returns:
- the
Endpoint
selected by thisEndpointSelector
's selection strategy, ornull
if noEndpoint
was selected, which can happen if theEndpointGroup
is empty.
-