com.alibaba.dubbo.remoting.transport
Class AbstractChannelHandlerDelegate

java.lang.Object
  extended by com.alibaba.dubbo.remoting.transport.AbstractChannelHandlerDelegate
All Implemented Interfaces:
ChannelHandler, ChannelHandlerDelegate
Direct Known Subclasses:
DecodeHandler, HeartbeatHandler, MultiMessageHandler

public abstract class AbstractChannelHandlerDelegate
extends Object
implements ChannelHandlerDelegate

Author:
kimi

Method Summary
 void caught(Channel channel, Throwable exception)
          on exception caught.
 void connected(Channel channel)
          on channel connected.
 void disconnected(Channel channel)
          on channel disconnected.
 ChannelHandler getHandler()
           
 void received(Channel channel, Object message)
          on message received.
 void sent(Channel channel, Object message)
          on message sent.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getHandler

public ChannelHandler getHandler()
Specified by:
getHandler in interface ChannelHandlerDelegate

connected

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

Specified by:
connected in interface ChannelHandler
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
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
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
Parameters:
channel - channel.
message - message.
Throws:
RemotingException

caught

public void caught(Channel channel,
                   Throwable exception)
            throws RemotingException
Description copied from interface: ChannelHandler
on exception caught.

Specified by:
caught in interface ChannelHandler
Parameters:
channel - channel.
exception - exception.
Throws:
RemotingException


Copyright © 2012–2017 Alibaba. All rights reserved.