public interface WeightedStats
WeightedLoadbalanceStrategy
to calculate an
algorithmic weight for an RSocket
. The weight helps to select an RSocket
for
load-balancing.Modifier and Type | Method and Description |
---|---|
double |
higherQuantileLatency() |
double |
lowerQuantileLatency() |
int |
pending() |
double |
predictedLatency() |
double |
weightedAvailability() |
default RSocket |
wrap(RSocket rsocket)
Create a proxy for the given
RSocket that attaches the stats contained in this instance
and exposes them as WeightedStats . |
double higherQuantileLatency()
double lowerQuantileLatency()
int pending()
double predictedLatency()
double weightedAvailability()
default RSocket wrap(RSocket rsocket)
RSocket
that attaches the stats contained in this instance
and exposes them as WeightedStats
.rsocket
- the RSocket to wrap