public class ChannelOperationHandlerAdapter extends Object implements ChannelOperationHandler
ChannelHandler.Sharable| Constructor and Description |
|---|
ChannelOperationHandlerAdapter() |
| 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 |
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 |
userEventTriggered(ChannelHandlerContext ctx,
Object evt)
Gets called if an user event was triggered.
|
public void beforeAdd(ChannelHandlerContext ctx) throws Exception
ChannelHandlerChannelHandler is added to the actual context.beforeAdd in interface ChannelHandlerExceptionpublic void afterAdd(ChannelHandlerContext ctx) throws Exception
ChannelHandlerChannelHandler was added to the actual context.afterAdd in interface ChannelHandlerExceptionpublic void beforeRemove(ChannelHandlerContext ctx) throws Exception
ChannelHandlerChannelHandler is removed from the actual context.beforeRemove in interface ChannelHandlerExceptionpublic void afterRemove(ChannelHandlerContext ctx) throws Exception
ChannelHandlerChannelHandler was removed from the actual context.afterRemove in interface ChannelHandlerExceptionpublic void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception
ChannelHandlerThrowable was thrown.exceptionCaught in interface ChannelHandlerExceptionpublic void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception
ChannelHandleruserEventTriggered in interface ChannelHandlerExceptionpublic void bind(ChannelHandlerContext ctx, SocketAddress localAddress, ChannelFuture future) throws Exception
bind in interface ChannelOperationHandlerExceptionpublic void connect(ChannelHandlerContext ctx, SocketAddress remoteAddress, SocketAddress localAddress, ChannelFuture future) throws Exception
connect in interface ChannelOperationHandlerExceptionpublic void disconnect(ChannelHandlerContext ctx, ChannelFuture future) throws Exception
disconnect in interface ChannelOperationHandlerExceptionpublic void close(ChannelHandlerContext ctx, ChannelFuture future) throws Exception
close in interface ChannelOperationHandlerExceptionpublic void deregister(ChannelHandlerContext ctx, ChannelFuture future) throws Exception
deregister in interface ChannelOperationHandlerExceptionpublic void flush(ChannelHandlerContext ctx, ChannelFuture future) throws Exception
flush in interface ChannelOperationHandlerExceptionCopyright © 2008-2012 The Netty Project. All Rights Reserved.