public class EchoClientHandler extends SimpleChannelUpstreamHandler
ChannelHandler.Sharable| Constructor and Description |
|---|
EchoClientHandler(int firstMessageSize)
Creates a client-side handler.
|
| Modifier and Type | Method and Description |
|---|---|
void |
channelConnected(ChannelHandlerContext ctx,
ChannelStateEvent e)
Invoked when a
Channel is open, bound to a local address, and
connected to a remote address. |
void |
exceptionCaught(ChannelHandlerContext ctx,
ExceptionEvent e)
Invoked when an exception was raised by an I/O thread or a
ChannelHandler. |
long |
getTransferredBytes() |
void |
messageReceived(ChannelHandlerContext ctx,
MessageEvent e)
Invoked when a message object (e.g:
ChannelBuffer) was received
from a remote peer. |
channelBound, channelClosed, channelDisconnected, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, handleUpstream, writeCompletepublic EchoClientHandler(int firstMessageSize)
public long getTransferredBytes()
public void channelConnected(ChannelHandlerContext ctx, ChannelStateEvent e)
SimpleChannelUpstreamHandlerChannel is open, bound to a local address, and
connected to a remote address.
channelConnected in class SimpleChannelUpstreamHandlerpublic void messageReceived(ChannelHandlerContext ctx, MessageEvent e)
SimpleChannelUpstreamHandlerChannelBuffer) was received
from a remote peer.messageReceived in class SimpleChannelUpstreamHandlerpublic void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e)
SimpleChannelUpstreamHandlerChannelHandler.exceptionCaught in class SimpleChannelUpstreamHandlerCopyright © 2008-2017 The Netty Project. All Rights Reserved.