public class RxtxClientHandler extends SimpleChannelInboundHandler<String>
ChannelHandler.Sharable
Constructor and Description |
---|
RxtxClientHandler() |
Modifier and Type | Method and Description |
---|---|
void |
channelActive(ChannelHandlerContext ctx)
Calls
ChannelHandlerContext.fireChannelActive() to forward
to the next ChannelInboundHandler in the ChannelPipeline . |
void |
channelRead0(ChannelHandlerContext ctx,
String msg)
Please keep in mind that this method will be renamed to
messageReceived(ChannelHandlerContext, I) in 5.0. |
acceptInboundMessage, channelRead
channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
handlerAdded, handlerRemoved, isSharable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handlerAdded, handlerRemoved
public void channelActive(ChannelHandlerContext ctx)
ChannelInboundHandlerAdapter
ChannelHandlerContext.fireChannelActive()
to forward
to the next ChannelInboundHandler
in the ChannelPipeline
.
Sub-classes may override this method to change behavior.channelActive
in interface ChannelInboundHandler
channelActive
in class ChannelInboundHandlerAdapter
public void channelRead0(ChannelHandlerContext ctx, String msg) throws Exception
SimpleChannelInboundHandler
messageReceived(ChannelHandlerContext, I)
in 5.0.
Is called for each message of type I
.channelRead0
in class SimpleChannelInboundHandler<String>
ctx
- the ChannelHandlerContext
which this SimpleChannelInboundHandler
belongs tomsg
- the message to handleException
- is thrown if an error occurredCopyright © 2008–2016 The Netty Project. All rights reserved.