Closeable that wraps a DisposableChannel, enabling
close-ability and exposing the DisposableChannel's address.
| Modifier and Type | Field and Description |
|---|---|
| private final DisposableChannel | |
| private static final Method | channelAddressMethod
For forward compatibility: remove when RSocket compiles against Reactor 1.0. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public InetSocketAddress | |
| public void | dispose()
Implements reactor. |
| public boolean | isDisposed()
Overrides default reactor. |
| public Mono | onClose()
Implements io. Mono that terminates when the instance is terminated by any reason.
|
| channel | back to summary |
|---|---|
| private final DisposableChannel channel | |
| channelAddressMethod | back to summary |
|---|---|
| private static final Method channelAddressMethod For forward compatibility: remove when RSocket compiles against Reactor 1.0. | |
| CloseableChannel | back to summary |
|---|---|
| pack-priv CloseableChannel(DisposableChannel channel) Creates a new instance
| |
| address | back to summary |
|---|---|
| public InetSocketAddress address() Return local server selector channel address.
| |
| dispose | back to summary |
|---|---|
| public void dispose() Implements reactor. Doc from reactor. Cancel or dispose the underlying task or resource. Implementations are required to make this method idempotent.
| |
| isDisposed | back to summary |
|---|---|
| public boolean isDisposed() Overrides default reactor. Doc from reactor. 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.
| |
| onClose | back to summary |
|---|---|
| public Mono Implements io. Doc from io. Returns a | |