类 HeartbeatHandler
- java.lang.Object
-
- com.alibaba.dubbo.remoting.transport.AbstractChannelHandlerDelegate
-
- com.alibaba.dubbo.remoting.exchange.support.header.HeartbeatHandler
-
- 所有已实现的接口:
ChannelHandler
,ChannelHandlerDelegate
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.-
从类继承的方法 com.alibaba.dubbo.remoting.transport.AbstractChannelHandlerDelegate
caught, getHandler
-
-
-
-
构造器详细资料
-
HeartbeatHandler
public HeartbeatHandler(ChannelHandler handler)
-
-
方法详细资料
-
connected
public void connected(Channel channel) throws RemotingException
从接口复制的说明:ChannelHandler
on channel connected.- 指定者:
connected
在接口中ChannelHandler
- 覆盖:
connected
在类中AbstractChannelHandlerDelegate
- 参数:
channel
- channel.- 抛出:
RemotingException
-
disconnected
public void disconnected(Channel channel) throws RemotingException
从接口复制的说明:ChannelHandler
on channel disconnected.- 指定者:
disconnected
在接口中ChannelHandler
- 覆盖:
disconnected
在类中AbstractChannelHandlerDelegate
- 参数:
channel
- channel.- 抛出:
RemotingException
-
sent
public void sent(Channel channel, Object message) throws RemotingException
从接口复制的说明:ChannelHandler
on message sent.- 指定者:
sent
在接口中ChannelHandler
- 覆盖:
sent
在类中AbstractChannelHandlerDelegate
- 参数:
channel
- channel.message
- message.- 抛出:
RemotingException
-
received
public void received(Channel channel, Object message) throws RemotingException
从接口复制的说明:ChannelHandler
on message received.- 指定者:
received
在接口中ChannelHandler
- 覆盖:
received
在类中AbstractChannelHandlerDelegate
- 参数:
channel
- channel.message
- message.- 抛出:
RemotingException
-
-