public class QuoteOfTheMomentServerHandler extends SimpleChannelInboundHandler<DatagramPacket>
ChannelHandler.Sharable| Constructor and Description |
|---|
QuoteOfTheMomentServerHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
channelRead0(ChannelHandlerContext ctx,
DatagramPacket packet)
Please keep in mind that this method will be renamed to
messageReceived(ChannelHandlerContext, I) in 5.0. |
void |
channelReadComplete(ChannelHandlerContext ctx)
Calls
ChannelHandlerContext.fireChannelReadComplete() to forward
to the next ChannelInboundHandler in the ChannelPipeline. |
void |
exceptionCaught(ChannelHandlerContext ctx,
Throwable cause)
Calls
ChannelHandlerContext.fireExceptionCaught(Throwable) to forward
to the next ChannelHandler in the ChannelPipeline. |
acceptInboundMessage, channelReadchannelActive, channelInactive, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandlerAdded, handlerRemovedpublic void channelRead0(ChannelHandlerContext ctx, DatagramPacket packet) throws Exception
SimpleChannelInboundHandlermessageReceived(ChannelHandlerContext, I) in 5.0.
Is called for each message of type I.channelRead0 in class SimpleChannelInboundHandler<DatagramPacket>ctx - the ChannelHandlerContext which this SimpleChannelInboundHandler
belongs topacket - the message to handleException - is thrown if an error occurredpublic void channelReadComplete(ChannelHandlerContext ctx)
ChannelInboundHandlerAdapterChannelHandlerContext.fireChannelReadComplete() to forward
to the next ChannelInboundHandler in the ChannelPipeline.
Sub-classes may override this method to change behavior.channelReadComplete in interface ChannelInboundHandlerchannelReadComplete in class ChannelInboundHandlerAdapterpublic void exceptionCaught(ChannelHandlerContext ctx, Throwable cause)
ChannelInboundHandlerAdapterChannelHandlerContext.fireExceptionCaught(Throwable) to forward
to the next ChannelHandler in the ChannelPipeline.
Sub-classes may override this method to change behavior.exceptionCaught in interface ChannelHandlerexceptionCaught in interface ChannelInboundHandlerexceptionCaught in class ChannelInboundHandlerAdapterCopyright © 2008–2017 The Netty Project. All rights reserved.