com.alibaba.dubbo.remoting.transport
Class ChannelHandlerAdapter

java.lang.Object
  extended by com.alibaba.dubbo.remoting.transport.ChannelHandlerAdapter
All Implemented Interfaces:
ChannelHandler
Direct Known Subclasses:
TelnetHandlerAdapter

public class ChannelHandlerAdapter
extends Object
implements ChannelHandler

ChannelHandlerAdapter.

Author:
qian.lei

Constructor Summary
ChannelHandlerAdapter()
           
 
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.
 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
 

Constructor Detail

ChannelHandlerAdapter

public ChannelHandlerAdapter()
Method Detail

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.