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)
Is called for each message of type
I . |
acceptInboundMessage, channelRead
channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
ensureNotSharable, 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
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–2021 The Netty Project. All rights reserved.