public class HeartbeatHandler extends AbstractChannelHandlerDelegate
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
KEY_READ_TIMESTAMP |
static String |
KEY_WRITE_TIMESTAMP |
| 构造器和说明 |
|---|
HeartbeatHandler(ChannelHandler handler) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 HeartbeatHandler(ChannelHandler handler)
public void connected(Channel channel) throws RemotingException
ChannelHandlerconnected 在接口中 ChannelHandlerconnected 在类中 AbstractChannelHandlerDelegatechannel - channel.RemotingExceptionpublic void disconnected(Channel channel) throws RemotingException
ChannelHandlerdisconnected 在接口中 ChannelHandlerdisconnected 在类中 AbstractChannelHandlerDelegatechannel - channel.RemotingExceptionpublic void sent(Channel channel, Object message) throws RemotingException
ChannelHandlersent 在接口中 ChannelHandlersent 在类中 AbstractChannelHandlerDelegatechannel - channel.message - message.RemotingExceptionpublic void received(Channel channel, Object message) throws RemotingException
ChannelHandlerreceived 在接口中 ChannelHandlerreceived 在类中 AbstractChannelHandlerDelegatechannel - channel.message - message.RemotingExceptionCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.