Top Fields Constructors Methods
io.rsocket.loadbalance

pack-priv Class ResolvingOperator<T>

extends Object
implements Disposable
Class Inheritance
All Implemented Interfaces
reactor.core.Disposable
Known Direct Subclasses
io.rsocket.loadbalance.RSocketPool, io.rsocket.loadbalance.PooledRSocket
Imports
java.time.Duration, java.util.concurrent.CancellationException, java.util.concurrent.atomic.AtomicIntegerFieldUpdater, .AtomicReferenceFieldUpdater, java.util.function.BiConsumer, reactor.core.Disposable, .Exceptions, reactor.core.publisher.Operators, reactor.util.annotation.Nullable, reactor.util.context.Context

Field Summary

Modifier and TypeField and Description
pack-priv static final int
pack-priv static final BiConsumer<?, Throwable>[]
pack-priv static final BiConsumer<?, Throwable>[]
pack-priv static final CancellationException
pack-priv static final BiConsumer<?, Throwable>[]
pack-priv static final int
pack-priv volatile BiConsumer<T, Throwable>[]
pack-priv static final AtomicReferenceFieldUpdater<ResolvingOperator<T>, BiConsumer<T, U>[]>
pack-priv Throwable
t

pack-priv static final BiConsumer<?, Throwable>[]
pack-priv static final int
pack-priv T
pack-priv volatile int
pack-priv static final AtomicIntegerFieldUpdater<ResolvingOperator<T>>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv final int
public T

Returns:

the value of this ResolvingOperator or null if the timeout is reached and the ResolvingOperator has not completed
block
(Duration
the timeout value as a Duration
timeout
)

Block the calling thread for the specified time, waiting for the completion of this ReconnectMono.

pack-priv final void
complete(T value)

public final boolean
public final void
dispose()

Implements reactor.core.Disposable.dispose.

Cancel or dispose the underlying task or resource.
pack-priv final void
protected void
protected void
protected void
protected void
pack-priv final void
public final boolean
isDisposed()

Overrides default reactor.core.Disposable.isDisposed.

Optionally return true when the resource or task is disposed.
public final boolean
pack-priv final void
pack-priv final void
pack-priv final void
public final T
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ADDED_STATEback to summary
pack-priv static final int ADDED_STATE
EMPTY_SUBSCRIBEDback to summary
pack-priv static final BiConsumer<?, Throwable>[] EMPTY_SUBSCRIBED
Annotations
@SuppressWarnings:unchecked
EMPTY_UNSUBSCRIBEDback to summary
pack-priv static final BiConsumer<?, Throwable>[] EMPTY_UNSUBSCRIBED
Annotations
@SuppressWarnings:unchecked
ON_DISPOSEback to summary
pack-priv static final CancellationException ON_DISPOSE
READYback to summary
pack-priv static final BiConsumer<?, Throwable>[] READY
Annotations
@SuppressWarnings:unchecked
READY_STATEback to summary
pack-priv static final int READY_STATE
subscribersback to summary
pack-priv volatile BiConsumer<T, Throwable>[] subscribers
SUBSCRIBERSback to summary
pack-priv static final AtomicReferenceFieldUpdater<ResolvingOperator<T>, BiConsumer<T, U>[]> SUBSCRIBERS
Annotations
@SuppressWarnings:rawtypes
tback to summary
pack-priv Throwable t
TERMINATEDback to summary
pack-priv static final BiConsumer<?, Throwable>[] TERMINATED
Annotations
@SuppressWarnings:unchecked
TERMINATED_STATEback to summary
pack-priv static final int TERMINATED_STATE
valueback to summary
pack-priv T value
wipback to summary
pack-priv volatile int wip
WIPback to summary
pack-priv static final AtomicIntegerFieldUpdater<ResolvingOperator<T>> WIP
Annotations
@SuppressWarnings:rawtypes

Constructor Detail

ResolvingOperatorback to summary
public ResolvingOperator()

Method Detail

addback to summary
pack-priv final int add(BiConsumer<T, Throwable> ps)
blockback to summary
public T block(Duration timeout)

Block the calling thread for the specified time, waiting for the completion of this ReconnectMono. If the ResolvingOperator is completed with an error a RuntimeException that wraps the error is thrown.

Parameters
timeout:Duration

the timeout value as a Duration

Returns:T

the value of this ResolvingOperator or null if the timeout is reached and the ResolvingOperator has not completed

Annotations
@Nullable
@SuppressWarnings:uncheked, BusyWait
Exceptions
RuntimeException:
if terminated with error
IllegalStateException:
if timed out or Thread was interrupted with InterruptedException
completeback to summary
pack-priv final void complete(T value)
connectback to summary
public final boolean connect()
disposeback to summary
public final void dispose()

Implements reactor.core.Disposable.dispose.

Doc from reactor.core.Disposable.dispose.

Cancel or dispose the underlying task or resource.

Implementations are required to make this method idempotent.

Annotations
@Override
doFinallyback to summary
pack-priv final void doFinally()
doOnDisposeback to summary
protected void doOnDispose()
doOnValueExpiredback to summary
protected void doOnValueExpired(T value)
doOnValueResolvedback to summary
protected void doOnValueResolved(T value)
doSubscribeback to summary
protected void doSubscribe()
invalidateback to summary
pack-priv final void invalidate()
isDisposedback to summary
public final boolean isDisposed()

Overrides default reactor.core.Disposable.isDisposed.

Doc from reactor.core.Disposable.isDisposed.

Optionally return true when the resource or task is disposed.

Implementations are not required to track disposition and as such may never return true even when disposed. However, they MUST only return true when there's a guarantee the resource or task is disposed.

Returns:boolean

true when there's a guarantee the resource or task is disposed.

Annotations
@Override
isPendingback to summary
public final boolean isPending()
observeback to summary
pack-priv final void observe(BiConsumer<T, Throwable> actual)
removeback to summary
pack-priv final void remove(BiConsumer<T, Throwable> ps)
Annotations
@SuppressWarnings:unchecked
terminateback to summary
pack-priv final void terminate(Throwable t)
Annotations
@SuppressWarnings:unchecked
valueIfResolvedback to summary
public final T valueIfResolved()
Annotations
@Nullable