@FunctionalInterface public interface EndpointSelectionStrategy
Endpoint selection strategy that creates a EndpointSelector.| Modifier and Type | Field and Description |
|---|---|
static EndpointSelectionStrategy |
ROUND_ROBIN
Deprecated.
Use
roundRobin(). |
static EndpointSelectionStrategy |
WEIGHTED_ROUND_ROBIN
Deprecated.
Use
weightedRoundRobin(). |
| Modifier and Type | Method and Description |
|---|---|
EndpointSelector |
newSelector(EndpointGroup endpointGroup)
|
static EndpointSelectionStrategy |
roundRobin()
Returns a round-robin strategy, which ignores
Endpoint.weight(). |
static EndpointSelectionStrategy |
weightedRoundRobin()
Returns a weighted round-robin strategy.
|
@Deprecated static final EndpointSelectionStrategy ROUND_ROBIN
roundRobin().@Deprecated static final EndpointSelectionStrategy WEIGHTED_ROUND_ROBIN
weightedRoundRobin().static EndpointSelectionStrategy weightedRoundRobin()
roundRobin()static EndpointSelectionStrategy roundRobin()
Endpoint.weight().weightedRoundRobin()EndpointSelector newSelector(EndpointGroup endpointGroup)
Copyright © 2020 LeanCloud. All rights reserved.