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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
on exception caught.void
close()
void
on channel connected.void
disconnected
(Channel channel) on channel disconnected.Deprecated.Currently, this method is mainly customized to facilitate the thread model on consumer side.get the shared executor for current Server or ClientgetUrl()
void
on message received.void
on message sent.
-
Constructor Details
-
WrappedChannelHandler
-
-
Method Details
-
close
public void close() -
connected
Description copied from interface:ChannelHandler
on channel connected.- Specified by:
connected
in interfaceChannelHandler
- Parameters:
channel
- channel.- Throws:
RemotingException
-
disconnected
Description copied from interface:ChannelHandler
on channel disconnected.- Specified by:
disconnected
in interfaceChannelHandler
- Parameters:
channel
- channel.- Throws:
RemotingException
-
sent
Description copied from interface:ChannelHandler
on message sent.- Specified by:
sent
in interfaceChannelHandler
- Parameters:
channel
- channel.message
- message.- Throws:
RemotingException
-
received
Description copied from interface:ChannelHandler
on message received.- Specified by:
received
in interfaceChannelHandler
- Parameters:
channel
- channel.message
- message.- Throws:
RemotingException
-
caught
Description copied from interface:ChannelHandler
on exception caught.- Specified by:
caught
in interfaceChannelHandler
- Parameters:
channel
- channel.exception
- exception.- Throws:
RemotingException
-
getHandler
- Specified by:
getHandler
in 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.
-