public class CombinedChannelHandler extends ChannelHandlerAdapter implements ChannelInboundHandler, ChannelOutboundHandler
ChannelHandler.Sharable| Modifier | Constructor and Description |
|---|---|
protected |
CombinedChannelHandler() |
|
CombinedChannelHandler(ChannelInboundHandler inboundHandler,
ChannelOutboundHandler outboundHandler) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterAdd(ChannelHandlerContext ctx)
Gets called after the
ChannelHandler was added to the actual context. |
void |
afterRemove(ChannelHandlerContext ctx)
Gets called after the
ChannelHandler was removed from the actual context. |
void |
beforeAdd(ChannelHandlerContext ctx)
Gets called before the
ChannelHandler is added to the actual context. |
void |
beforeRemove(ChannelHandlerContext ctx)
Gets called before the
ChannelHandler is removed from the actual context. |
void |
bind(ChannelHandlerContext ctx,
SocketAddress localAddress,
ChannelFuture future) |
void |
channelActive(ChannelHandlerContext ctx) |
void |
channelInactive(ChannelHandlerContext ctx) |
void |
channelRegistered(ChannelHandlerContext ctx) |
void |
channelUnregistered(ChannelHandlerContext ctx) |
void |
close(ChannelHandlerContext ctx,
ChannelFuture future) |
void |
connect(ChannelHandlerContext ctx,
SocketAddress remoteAddress,
SocketAddress localAddress,
ChannelFuture future) |
void |
deregister(ChannelHandlerContext ctx,
ChannelFuture future) |
void |
disconnect(ChannelHandlerContext ctx,
ChannelFuture future) |
void |
exceptionCaught(ChannelHandlerContext ctx,
Throwable cause)
Gets called if a
Throwable was thrown. |
void |
flush(ChannelHandlerContext ctx,
ChannelFuture future) |
void |
inboundBufferUpdated(ChannelHandlerContext ctx)
The inbound buffer of the
ChannelHandlerContext was updated with new data. |
protected void |
init(ChannelInboundHandler inboundHandler,
ChannelOutboundHandler outboundHandler) |
io.netty.buffer.ChannelBuf |
newInboundBuffer(ChannelHandlerContext ctx)
Return the
ChannelBuf which will be used for inbound data for the given ChannelHandlerContext. |
io.netty.buffer.ChannelBuf |
newOutboundBuffer(ChannelHandlerContext ctx) |
void |
userEventTriggered(ChannelHandlerContext ctx,
Object evt)
Gets called if an user event was triggered.
|
protected CombinedChannelHandler()
public CombinedChannelHandler(ChannelInboundHandler inboundHandler, ChannelOutboundHandler outboundHandler)
protected void init(ChannelInboundHandler inboundHandler, ChannelOutboundHandler outboundHandler)
public io.netty.buffer.ChannelBuf newInboundBuffer(ChannelHandlerContext ctx) throws Exception
ChannelInboundHandlerChannelBuf which will be used for inbound data for the given ChannelHandlerContext.newInboundBuffer in interface ChannelInboundHandlerExceptionpublic io.netty.buffer.ChannelBuf newOutboundBuffer(ChannelHandlerContext ctx) throws Exception
newOutboundBuffer in interface ChannelOutboundHandlerExceptionpublic void beforeAdd(ChannelHandlerContext ctx) throws Exception
ChannelHandlerChannelHandler is added to the actual context.beforeAdd in interface ChannelHandlerbeforeAdd in class ChannelStateHandlerAdapterExceptionpublic void afterAdd(ChannelHandlerContext ctx) throws Exception
ChannelHandlerChannelHandler was added to the actual context.afterAdd in interface ChannelHandlerafterAdd in class ChannelStateHandlerAdapterExceptionpublic void beforeRemove(ChannelHandlerContext ctx) throws Exception
ChannelHandlerChannelHandler is removed from the actual context.beforeRemove in interface ChannelHandlerbeforeRemove in class ChannelStateHandlerAdapterExceptionpublic void afterRemove(ChannelHandlerContext ctx) throws Exception
ChannelHandlerChannelHandler was removed from the actual context.afterRemove in interface ChannelHandlerafterRemove in class ChannelStateHandlerAdapterExceptionpublic void channelRegistered(ChannelHandlerContext ctx) throws Exception
channelRegistered in interface ChannelStateHandlerchannelRegistered in class ChannelStateHandlerAdapterExceptionpublic void channelUnregistered(ChannelHandlerContext ctx) throws Exception
channelUnregistered in interface ChannelStateHandlerchannelUnregistered in class ChannelStateHandlerAdapterExceptionpublic void channelActive(ChannelHandlerContext ctx) throws Exception
channelActive in interface ChannelStateHandlerchannelActive in class ChannelStateHandlerAdapterExceptionpublic void channelInactive(ChannelHandlerContext ctx) throws Exception
channelInactive in interface ChannelStateHandlerchannelInactive in class ChannelStateHandlerAdapterExceptionpublic void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception
ChannelHandlerThrowable was thrown.exceptionCaught in interface ChannelHandlerexceptionCaught in class ChannelStateHandlerAdapterExceptionpublic void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception
ChannelHandleruserEventTriggered in interface ChannelHandleruserEventTriggered in class ChannelStateHandlerAdapterExceptionpublic void inboundBufferUpdated(ChannelHandlerContext ctx) throws Exception
ChannelStateHandlerChannelHandlerContext was updated with new data.
This means something may be ready to get processed by the actual ChannelStateHandler
implementation. It's up to the implementation to consume it or keep it in the buffer
to wait for more data and consume it later.inboundBufferUpdated in interface ChannelStateHandlerinboundBufferUpdated in class ChannelStateHandlerAdapterExceptionpublic void bind(ChannelHandlerContext ctx, SocketAddress localAddress, ChannelFuture future) throws Exception
bind in interface ChannelOperationHandlerbind in class ChannelHandlerAdapterExceptionpublic void connect(ChannelHandlerContext ctx, SocketAddress remoteAddress, SocketAddress localAddress, ChannelFuture future) throws Exception
connect in interface ChannelOperationHandlerconnect in class ChannelHandlerAdapterExceptionpublic void disconnect(ChannelHandlerContext ctx, ChannelFuture future) throws Exception
disconnect in interface ChannelOperationHandlerdisconnect in class ChannelHandlerAdapterExceptionpublic void close(ChannelHandlerContext ctx, ChannelFuture future) throws Exception
close in interface ChannelOperationHandlerclose in class ChannelHandlerAdapterExceptionpublic void deregister(ChannelHandlerContext ctx, ChannelFuture future) throws Exception
deregister in interface ChannelOperationHandlerderegister in class ChannelHandlerAdapterExceptionpublic void flush(ChannelHandlerContext ctx, ChannelFuture future) throws Exception
flush in interface ChannelOperationHandlerflush in class ChannelHandlerAdapterExceptionCopyright © 2008-2012 The Netty Project. All Rights Reserved.