public interface NettyConnectionContext extends ConnectionContext
ConnectionContext for netty based transports.| Modifier and Type | Interface and Description |
|---|---|
static interface |
NettyConnectionContext.FlushStrategyProvider
|
ConnectionContext.Protocol| Modifier and Type | Method and Description |
|---|---|
FlushStrategy |
defaultFlushStrategy()
Returns the
FlushStrategy used by default for this NettyConnectionContext. |
io.netty.channel.Channel |
nettyChannel()
Return the Netty
Channel backing this connection. |
Completable |
onClosing()
Returns a
Completable that notifies when the connection has begun its closing sequence. |
Single<java.lang.Throwable> |
transportError()
Returns a
Single<Throwable> that may terminate with an error, if an error is observed at
the transport. |
Cancellable |
updateFlushStrategy(NettyConnectionContext.FlushStrategyProvider strategyProvider)
Updates
FlushStrategy associated with this connection. |
executionContext, localAddress, protocol, remoteAddress, socketOption, sslSessiononClosecloseAsync, closeAsyncGracefullyCancellable updateFlushStrategy(NettyConnectionContext.FlushStrategyProvider strategyProvider)
FlushStrategy associated with this connection. Updated FlushStrategy will be used in any
subsequent writes on this connection.strategyProvider - NettyConnectionContext.FlushStrategyProvider to provide a new FlushStrategy.
NettyConnectionContext.FlushStrategyProvider.computeFlushStrategy(FlushStrategy, boolean) MAY be invoked
multiple times for a single call to this method and is expected to be idempotent.Cancellable that will cancel this update.FlushStrategy defaultFlushStrategy()
FlushStrategy used by default for this NettyConnectionContext.FlushStrategy used by default for this NettyConnectionContext.Single<java.lang.Throwable> transportError()
Single<Throwable> that may terminate with an error, if an error is observed at
the transport.Single<Throwable> that may terminate with an error, if an error is observed at
the transport.Completable onClosing()
Completable that notifies when the connection has begun its closing sequence.Completable that notifies when the connection has begun its closing sequence. A configured
CloseHandler will determine whether more reads or writes will be allowed on this
NettyConnectionContext.io.netty.channel.Channel nettyChannel()
Channel backing this connection.Channel backing this connection.