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
Publisher that completes when this RSocket is closed. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitavailability, receive, send, sendOneprotected abstract void doOnClose()
public final Mono<Void> onClose()
CloseablePublisher that completes when this RSocket is closed. A RSocket can be closed by explicitly calling Disposable.dispose() or when the underlying
transport connection is closed.public final void dispose()
dispose in interface Disposablepublic final boolean isDisposed()
isDisposed in interface Disposable