public class WorldClockClientHandler extends SimpleChannelInboundHandler<WorldClockProtocol.LocalTimes>
ChannelHandler.Sharable| Constructor and Description |
|---|
WorldClockClientHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
channelRead0(ChannelHandlerContext ctx,
WorldClockProtocol.LocalTimes times)
Please keep in mind that this method will be renamed to
messageReceived(ChannelHandlerContext, I) in 5.0. |
void |
channelRegistered(ChannelHandlerContext ctx)
Calls
ChannelHandlerContext.fireChannelRegistered() 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. |
List<String> |
getLocalTimes(Collection<String> cities) |
acceptInboundMessage, channelReadchannelActive, channelInactive, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandlerAdded, handlerRemovedpublic List<String> getLocalTimes(Collection<String> cities)
public void channelRegistered(ChannelHandlerContext ctx)
ChannelInboundHandlerAdapterChannelHandlerContext.fireChannelRegistered() to forward
to the next ChannelInboundHandler in the ChannelPipeline.
Sub-classes may override this method to change behavior.channelRegistered in interface ChannelInboundHandlerchannelRegistered in class ChannelInboundHandlerAdapterpublic void channelRead0(ChannelHandlerContext ctx, WorldClockProtocol.LocalTimes times) throws Exception
SimpleChannelInboundHandlermessageReceived(ChannelHandlerContext, I) in 5.0.
Is called for each message of type I.channelRead0 in class SimpleChannelInboundHandler<WorldClockProtocol.LocalTimes>ctx - the ChannelHandlerContext which this SimpleChannelInboundHandler
belongs totimes - the message to handleException - is thrown if an error occurredpublic 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.