Class WrappedChannelHandler
java.lang.Object
org.apache.dubbo.remoting.transport.dispatcher.WrappedChannelHandler
- All Implemented Interfaces:
ChannelHandler,ChannelHandlerDelegate
- Direct Known Subclasses:
AllChannelHandler,ConnectionOrderedChannelHandler,DirectChannelHandler,ExecutionChannelHandler,MessageOnlyChannelHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidon exception caught.voidclose()voidon channel connected.voiddisconnected(Channel channel) on channel disconnected.Deprecated.Currently, this method is mainly customized to facilitate the thread model on consumer side. 1.get the shared executor for current Server or ClientgetUrl()voidon message received.voidon message sent.
-
Constructor Details
-
WrappedChannelHandler
-
-
Method Details
-
close
public void close() -
connected
Description copied from interface:ChannelHandleron channel connected.- Specified by:
connectedin interfaceChannelHandler- Parameters:
channel- channel.- Throws:
RemotingException
-
disconnected
Description copied from interface:ChannelHandleron channel disconnected.- Specified by:
disconnectedin interfaceChannelHandler- Parameters:
channel- channel.- Throws:
RemotingException
-
sent
Description copied from interface:ChannelHandleron message sent.- Specified by:
sentin interfaceChannelHandler- Parameters:
channel- channel.message- message.- Throws:
RemotingException
-
received
Description copied from interface:ChannelHandleron message received.- Specified by:
receivedin interfaceChannelHandler- Parameters:
channel- channel.message- message.- Throws:
RemotingException
-
caught
Description copied from interface:ChannelHandleron exception caught.- Specified by:
caughtin interfaceChannelHandler- Parameters:
channel- channel.exception- exception.- Throws:
RemotingException
-
getHandler
- Specified by:
getHandlerin interfaceChannelHandlerDelegate
-
getUrl
-
getPreferredExecutorService
Currently, this method is mainly customized to facilitate the thread model on consumer side. 1. Use ThreadlessExecutor, aka., delegate callback directly to the thread initiating the call. 2. Use shared executor to execute the callback.- Parameters:
msg-- Returns:
-
getExecutorService
Deprecated.
-