@FunctionalInterface
public interface DisposableChannel
extends reactor.core.Disposable
Modifier and Type | Method and Description |
---|---|
default java.net.InetSocketAddress |
address()
Return local server selector channel address.
|
io.netty.channel.Channel |
channel()
Return the underlying
Channel . |
default void |
dispose()
Release or close the underlying
Channel |
default void |
disposeNow()
Release or close the underlying
Channel in a blocking fashion with 3
seconds default timeout. |
default void |
disposeNow(java.time.Duration timeout)
Release or close the underlying
Channel in a blocking fashion |
default reactor.core.CoreSubscriber<java.lang.Void> |
disposeSubscriber()
Return a
CoreSubscriber that will dispose on complete or error |
default boolean |
isDisposed() |
default reactor.core.publisher.Mono<java.lang.Void> |
onDispose()
Return an observing
Mono terminating with success when shutdown
successfully or error. |
default DisposableChannel |
onDispose(reactor.core.Disposable onDispose)
Assign a
Disposable to be invoked when the channel is closed. |
default java.net.InetSocketAddress address()
InetSocketAddress
io.netty.channel.Channel channel()
Channel
. Direct interaction might be considered
insecure if that affects the underlying IO processing such as read, write or close
or state such as pipeline handler addition/removal.Channel
default void dispose()
Channel
dispose
in interface reactor.core.Disposable
default void disposeNow()
Channel
in a blocking fashion with 3
seconds default timeout.default void disposeNow(java.time.Duration timeout)
Channel
in a blocking fashiondefault reactor.core.CoreSubscriber<java.lang.Void> disposeSubscriber()
CoreSubscriber
that will dispose on complete or errordefault boolean isDisposed()
isDisposed
in interface reactor.core.Disposable
default reactor.core.publisher.Mono<java.lang.Void> onDispose()
Mono
terminating with success when shutdown
successfully or error.Mono
terminating with success if shutdown successfully or errordefault DisposableChannel onDispose(reactor.core.Disposable onDispose)
Disposable
to be invoked when the channel is closed.onDispose
- the close event handler