LoadbalanceRSocketClient.@Deprecated public abstract class LoadBalancedRSocketMono extends Mono<io.rsocket.RSocket> implements io.rsocket.Availability, io.rsocket.Closeable
Mono that load balances across a pool of RSockets and emits one when
it is subscribed to
It estimates the load of each RSocket based on statistics collected.
Disposable.Composite, Disposable.Swap| Modifier and Type | Field and Description |
|---|---|
static double |
DEFAULT_EXP_FACTOR
Deprecated.
|
static double |
DEFAULT_HIGHER_QUANTILE
Deprecated.
|
static double |
DEFAULT_LOWER_QUANTILE
Deprecated.
|
static int |
DEFAULT_MAX_APERTURE
Deprecated.
|
static double |
DEFAULT_MAX_PENDING
Deprecated.
|
static long |
DEFAULT_MAX_REFRESH_PERIOD_MS
Deprecated.
|
static int |
DEFAULT_MIN_APERTURE
Deprecated.
|
static double |
DEFAULT_MIN_PENDING
Deprecated.
|
protected Mono<io.rsocket.RSocket> |
rSocketMono
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
double |
availability()
Deprecated.
|
static LoadBalancedRSocketMono |
create(org.reactivestreams.Publisher<? extends Collection<RSocketSupplier>> factories)
Deprecated.
|
static LoadBalancedRSocketMono |
create(org.reactivestreams.Publisher<? extends Collection<RSocketSupplier>> factories,
double expFactor,
double lowQuantile,
double highQuantile,
double minPendings,
double maxPendings,
int minAperture,
int maxAperture,
long maxRefreshPeriodMs)
Deprecated.
|
static LoadBalancedRSocketMono |
create(org.reactivestreams.Publisher<? extends Collection<RSocketSupplier>> factories,
double expFactor,
double lowQuantile,
double highQuantile,
double minPendings,
double maxPendings,
int minAperture,
int maxAperture,
long maxRefreshPeriodMs,
long weightedSocketRetries,
Duration weightedSocketBackOff,
Duration weightedSocketMaxBackOff)
Deprecated.
|
void |
dispose()
Deprecated.
|
boolean |
isDisposed()
Deprecated.
|
Mono<Void> |
onClose()
Deprecated.
|
String |
toString()
Deprecated.
|
and, as, block, block, blockOptional, blockOptional, cache, cache, cache, cache, cache, cacheInvalidateIf, cacheInvalidateWhen, cacheInvalidateWhen, cancelOn, cast, checkpoint, checkpoint, checkpoint, concatWith, contextWrite, contextWrite, create, defaultIfEmpty, defer, deferContextual, deferWithContext, delay, delay, delayElement, delayElement, delaySubscription, delaySubscription, delaySubscription, delayUntil, dematerialize, doAfterSuccessOrError, doAfterTerminate, doFinally, doFirst, doOnCancel, doOnDiscard, doOnEach, doOnError, doOnError, doOnError, doOnNext, doOnRequest, doOnSubscribe, doOnSuccess, doOnSuccessOrError, doOnTerminate, elapsed, elapsed, empty, error, error, expand, expand, expandDeep, expandDeep, filter, filterWhen, first, first, firstWithSignal, firstWithSignal, firstWithValue, firstWithValue, flatMap, flatMapIterable, flatMapMany, flatMapMany, flux, from, fromCallable, fromCompletionStage, fromCompletionStage, fromDirect, fromFuture, fromFuture, fromRunnable, fromSupplier, handle, hasElement, hide, ignoreElement, ignoreElements, just, justOrEmpty, justOrEmpty, log, log, log, log, log, log, map, mapNotNull, materialize, mergeWith, metrics, name, never, ofType, onAssembly, onErrorContinue, onErrorContinue, onErrorContinue, onErrorMap, onErrorMap, onErrorMap, onErrorResume, onErrorResume, onErrorResume, onErrorReturn, onErrorReturn, onErrorReturn, onErrorStop, onTerminateDetach, or, publish, publishOn, repeat, repeat, repeat, repeat, repeatWhen, repeatWhenEmpty, repeatWhenEmpty, retry, retry, retryWhen, sequenceEqual, sequenceEqual, sequenceEqual, share, single, subscribe, subscribe, subscribe, subscribe, subscribe, subscribe, subscribe, subscribe, subscribeOn, subscriberContext, subscriberContext, subscriberContext, subscribeWith, switchIfEmpty, tag, take, take, takeUntilOther, then, then, thenEmpty, thenMany, thenReturn, timed, timed, timeout, timeout, timeout, timeout, timeout, timeout, timestamp, timestamp, toFuture, toProcessor, transform, transformDeferred, transformDeferredContextual, using, using, usingWhen, usingWhen, when, when, whenDelayError, whenDelayError, zip, zip, zip, zip, zip, zip, zip, zip, zip, zip, zipDelayError, zipDelayError, zipDelayError, zipDelayError, zipDelayError, zipDelayError, zipDelayError, zipDelayError, zipDelayError, zipWhen, zipWhen, zipWith, zipWithpublic static final double DEFAULT_EXP_FACTOR
public static final double DEFAULT_LOWER_QUANTILE
public static final double DEFAULT_HIGHER_QUANTILE
public static final double DEFAULT_MIN_PENDING
public static final double DEFAULT_MAX_PENDING
public static final int DEFAULT_MIN_APERTURE
public static final int DEFAULT_MAX_APERTURE
public static final long DEFAULT_MAX_REFRESH_PERIOD_MS
protected final Mono<io.rsocket.RSocket> rSocketMono
public static LoadBalancedRSocketMono create(org.reactivestreams.Publisher<? extends Collection<RSocketSupplier>> factories)
public static LoadBalancedRSocketMono create(org.reactivestreams.Publisher<? extends Collection<RSocketSupplier>> factories, double expFactor, double lowQuantile, double highQuantile, double minPendings, double maxPendings, int minAperture, int maxAperture, long maxRefreshPeriodMs, long weightedSocketRetries, Duration weightedSocketBackOff, Duration weightedSocketMaxBackOff)
public static LoadBalancedRSocketMono create(org.reactivestreams.Publisher<? extends Collection<RSocketSupplier>> factories, double expFactor, double lowQuantile, double highQuantile, double minPendings, double maxPendings, int minAperture, int maxAperture, long maxRefreshPeriodMs)
public double availability()
availability in interface io.rsocket.Availabilitypublic void dispose()
dispose in interface Disposablepublic boolean isDisposed()
isDisposed in interface Disposable