com.alibaba.dubbo.remoting.transport.dispatcher.all
Class AllChannelHandler

java.lang.Object
  extended by com.alibaba.dubbo.remoting.transport.dispatcher.WrappedChannelHandler
      extended by com.alibaba.dubbo.remoting.transport.dispatcher.all.AllChannelHandler
All Implemented Interfaces:
ChannelHandler, ChannelHandlerDelegate

public class AllChannelHandler
extends WrappedChannelHandler


Constructor Summary
AllChannelHandler(ChannelHandler handler, URL url)
           
 
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.
 
Methods inherited from class com.alibaba.dubbo.remoting.transport.dispatcher.WrappedChannelHandler
close, getExecutor, getHandler, getUrl, sent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AllChannelHandler

public AllChannelHandler(ChannelHandler handler,
                         URL url)
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 WrappedChannelHandler
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 WrappedChannelHandler
Parameters:
channel - channel.
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 WrappedChannelHandler
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
Overrides:
caught in class WrappedChannelHandler
Parameters:
channel - channel.
exception - exception.
Throws:
RemotingException


Copyright © 2012–2017 Alibaba. All rights reserved.