com.alibaba.dubbo.remoting.transport.dispatcher
Class WrappedChannelHandler

java.lang.Object
  extended by com.alibaba.dubbo.remoting.transport.dispatcher.WrappedChannelHandler
All Implemented Interfaces:
ChannelHandler, ChannelHandlerDelegate
Direct Known Subclasses:
AllChannelHandler, ConnectionOrderedChannelHandler, ExecutionChannelHandler, MessageOnlyChannelHandler

public class WrappedChannelHandler
extends Object
implements ChannelHandlerDelegate


Constructor Summary
WrappedChannelHandler(ChannelHandler handler, URL url)
           
 
Method Summary
 void caught(Channel channel, Throwable exception)
          on exception caught.
 void close()
           
 void connected(Channel channel)
          on channel connected.
 void disconnected(Channel channel)
          on channel disconnected.
 ExecutorService getExecutor()
           
 ChannelHandler getHandler()
           
 URL getUrl()
           
 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

WrappedChannelHandler

public WrappedChannelHandler(ChannelHandler handler,
                             URL url)
Method Detail

close

public void close()

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

getExecutor

public ExecutorService getExecutor()

getHandler

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

getUrl

public URL getUrl()


Copyright © 2012–2017 Alibaba. All rights reserved.