public class HeartbeatHandler extends AbstractChannelHandlerDelegate
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_READ_TIMESTAMP |
static String |
KEY_WRITE_TIMESTAMP |
| Constructor and Description |
|---|
HeartbeatHandler(ChannelHandler handler) |
| Modifier and Type | Method and Description |
|---|---|
void |
connected(Channel channel)
on channel connected.
|
void |
disconnected(Channel channel)
on channel disconnected.
|
void |
received(Channel channel,
Object message)
on message received.
|
void |
sent(Channel channel,
Object message)
on message sent.
|
caught, getHandlerpublic static String KEY_READ_TIMESTAMP
public static String KEY_WRITE_TIMESTAMP
public HeartbeatHandler(ChannelHandler handler)
public void connected(Channel channel) throws RemotingException
ChannelHandlerconnected in interface ChannelHandlerconnected in class AbstractChannelHandlerDelegatechannel - channel.RemotingExceptionpublic void disconnected(Channel channel) throws RemotingException
ChannelHandlerdisconnected in interface ChannelHandlerdisconnected in class AbstractChannelHandlerDelegatechannel - channel.RemotingExceptionpublic void sent(Channel channel, Object message) throws RemotingException
ChannelHandlersent in interface ChannelHandlersent in class AbstractChannelHandlerDelegatechannel - channel.message - message.RemotingExceptionpublic void received(Channel channel, Object message) throws RemotingException
ChannelHandlerreceived in interface ChannelHandlerreceived in class AbstractChannelHandlerDelegatechannel - channel.message - message.RemotingExceptionCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.