public abstract class BaseDuplexConnection extends Object implements DuplexConnection
Disposable.Composite, Disposable.Swap| Constructor and Description |
|---|
BaseDuplexConnection() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
protected abstract void |
doOnClose() |
boolean |
isDisposed() |
Mono<Void> |
onClose()
Returns a
Mono that terminates when the instance is terminated by any reason. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitalloc, availability, receive, send, sendOneprotected abstract void doOnClose()
public final Mono<Void> onClose()
CloseableMono that terminates when the instance is terminated by any reason. Note, in
case of error termination, the cause of error will be propagated as an error signal through
Subscriber.onError(Throwable). Otherwise, Subscriber.onComplete() will be called.public final void dispose()
dispose in interface Disposablepublic final boolean isDisposed()
isDisposed in interface Disposable