public abstract class CloseHandler
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CloseHandler.CloseEvent
These events indicate an event was observed from the protocol or
Channel that indicates the end of the
Channel and no further requests should be attempted. |
static class |
CloseHandler.CloseEventObservedException
ClosedChannelException with additional meta-data to provide more context on what side initiated the close
event. |
| Modifier and Type | Field and Description |
|---|---|
static CloseHandler |
PROTOCOL_OUTBOUND_CLOSE_HANDLER |
static CloseHandler |
UNSUPPORTED_PROTOCOL_CLOSE_HANDLER |
| Constructor and Description |
|---|
CloseHandler() |
| Modifier and Type | Method and Description |
|---|---|
static CloseHandler |
forPipelinedRequestResponse(boolean client,
io.netty.channel.ChannelConfig config)
New
CloseHandler instance. |
abstract void |
protocolClosingInbound(io.netty.channel.ChannelHandlerContext ctx)
Signal inbound close command observed, to be emitted from the
EventLoop for the Channel. |
abstract void |
protocolClosingOutbound(io.netty.channel.ChannelHandlerContext ctx)
Signal outbound close command observed, to be emitted from the
EventLoop for the Channel. |
abstract void |
protocolPayloadBeginInbound(io.netty.channel.ChannelHandlerContext ctx)
Signal begin of inbound payload, to be emitted from the
EventLoop for the Channel. |
abstract void |
protocolPayloadBeginOutbound(io.netty.channel.ChannelHandlerContext ctx)
Signal begin of outbound payload, to be emitted from the
EventLoop for the Channel. |
abstract void |
protocolPayloadEndInbound(io.netty.channel.ChannelHandlerContext ctx)
Signal end of inbound payload, to be emitted from the
EventLoop for the Channel. |
abstract void |
protocolPayloadEndOutbound(io.netty.channel.ChannelHandlerContext ctx)
Signal end of outbound payload, to be emitted from the
EventLoop for the Channel. |
abstract void |
protocolPayloadEndOutboundSuccess(io.netty.channel.ChannelHandlerContext ctx)
Signal end of outbound payload, once successfully written to the
Channel. |
public static final CloseHandler UNSUPPORTED_PROTOCOL_CLOSE_HANDLER
public static final CloseHandler PROTOCOL_OUTBOUND_CLOSE_HANDLER
public static CloseHandler forPipelinedRequestResponse(boolean client, io.netty.channel.ChannelConfig config)
CloseHandler instance.client - operation mode, TRUE for client or FALSE for serverconfig - The ChannelConfig associated with the channel to create the CloseHandler for.
This ChannelConfig maybe modified to ensure the underlying options allow for half-closure.public abstract void protocolPayloadBeginInbound(io.netty.channel.ChannelHandlerContext ctx)
EventLoop for the Channel.ctx - ChannelHandlerContextpublic abstract void protocolPayloadEndInbound(io.netty.channel.ChannelHandlerContext ctx)
EventLoop for the Channel.ctx - ChannelHandlerContextpublic abstract void protocolPayloadBeginOutbound(io.netty.channel.ChannelHandlerContext ctx)
EventLoop for the Channel.ctx - ChannelHandlerContextpublic abstract void protocolPayloadEndOutbound(io.netty.channel.ChannelHandlerContext ctx)
EventLoop for the Channel.ctx - ChannelHandlerContextpublic abstract void protocolPayloadEndOutboundSuccess(io.netty.channel.ChannelHandlerContext ctx)
Channel.ctx - ChannelHandlerContextpublic abstract void protocolClosingInbound(io.netty.channel.ChannelHandlerContext ctx)
EventLoop for the Channel.ctx - ChannelHandlerContextpublic abstract void protocolClosingOutbound(io.netty.channel.ChannelHandlerContext ctx)
EventLoop for the Channel.ctx - ChannelHandlerContext