public static class SocketAutoReadTest.ServerTestHandler extends ChannelInboundHandlerAdapter
ChannelHandler.Sharable
Constructor and Description |
---|
SocketAutoReadTest.ServerTestHandler() |
Modifier and Type | Method and Description |
---|---|
void |
await() |
void |
channelRead(ChannelHandlerContext ctx,
Object msg)
Calls
ChannelHandlerContext.fireChannelRead(Object) to forward
to the next ChannelInboundHandler in the ChannelPipeline . |
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
handlerAdded, handlerRemoved, isSharable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handlerAdded, handlerRemoved
public SocketAutoReadTest.ServerTestHandler()
public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception
ChannelInboundHandlerAdapter
ChannelHandlerContext.fireChannelRead(Object)
to forward
to the next ChannelInboundHandler
in the ChannelPipeline
.
Sub-classes may override this method to change behavior.channelRead
in interface ChannelInboundHandler
Exception
public void await() throws InterruptedException
InterruptedException
Copyright © 2008–2016 The Netty Project. All rights reserved.