com.alibaba.dubbo.remoting.exchange.support.header
Class HeartbeatHandler

java.lang.Object  extended by com.alibaba.dubbo.remoting.transport.AbstractChannelHandlerDelegate      extended by com.alibaba.dubbo.remoting.exchange.support.header.HeartbeatHandler
All Implemented Interfaces:
ChannelHandler, ChannelHandlerDelegate

public class HeartbeatHandler
extends AbstractChannelHandlerDelegate

Author:
kimi


Field Summary
static StringKEY_READ_TIMESTAMP
           
static StringKEY_WRITE_TIMESTAMP
           
 
Constructor Summary
HeartbeatHandler(ChannelHandler handler)
           
 
Method Summary
 voidconnected(Channel channel)
          on channel connected.
 voiddisconnected(Channel channel)
          on channel disconnected.
 voidreceived(Channel channel, Object message)
          on message received.
 voidsent(Channel channel, Object message)
          on message sent.
 
Methods inherited from class com.alibaba.dubbo.remoting.transport.AbstractChannelHandlerDelegate
caught, getHandler
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY_READ_TIMESTAMP

public static String KEY_READ_TIMESTAMP

KEY_WRITE_TIMESTAMP

public static String KEY_WRITE_TIMESTAMP
Constructor Detail

HeartbeatHandler

public HeartbeatHandler(ChannelHandler handler)
Method Detail

connected

public void connected(Channel channel)               throws RemotingException
Description copied from interface: ChannelHandler
on channel connected.

Specified by:
connected in interface ChannelHandler
Overrides:
connected in class AbstractChannelHandlerDelegate
Parameters:
channel - channel.
Throws:
RemotingException

disconnected

public void disconnected(Channel channel)                  throws RemotingException
Description copied from interface: ChannelHandler
on channel disconnected.

Specified by:
disconnected in interface ChannelHandler
Overrides:
disconnected in class AbstractChannelHandlerDelegate
Parameters:
channel - channel.
Throws:
RemotingException

sent

public void sent(Channel channel,                 Object message)          throws RemotingException
Description copied from interface: ChannelHandler
on message sent.

Specified by:
sent in interface ChannelHandler
Overrides:
sent in class AbstractChannelHandlerDelegate
Parameters:
channel - channel.
message - message.
Throws:
RemotingException

received

public void received(Channel channel,                     Object message)              throws RemotingException
Description copied from interface: ChannelHandler
on message received.

Specified by:
received in interface ChannelHandler
Overrides:
received in class AbstractChannelHandlerDelegate
Parameters:
channel - channel.
message - message.
Throws:
RemotingException


Copyright © 2012
Alibaba. All Rights Reserved.


NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14