Interface EndpointSelectionStrategy
- All Known Implementing Classes:
StickyEndpointSelectionStrategy
- 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 EndpointSelectionStrategy
Endpoint
selection strategy that creates a EndpointSelector
.-
Method Summary
Modifier and Type Method Description EndpointSelector
newSelector(EndpointGroup endpointGroup)
static EndpointSelectionStrategy
roundRobin()
Returns a round-robin strategy, which ignoresEndpoint.weight()
.static EndpointSelectionStrategy
weightedRoundRobin()
Returns a weighted round-robin strategy.
-
Method Details
-
weightedRoundRobin
Returns a weighted round-robin strategy.- See Also:
roundRobin()
-
roundRobin
Returns a round-robin strategy, which ignoresEndpoint.weight()
.- See Also:
weightedRoundRobin()
-
newSelector
-