类 WrappedChannelHandler
- java.lang.Object
-
- org.apache.dubbo.remoting.transport.dispatcher.WrappedChannelHandler
-
- 所有已实现的接口:
ChannelHandler,ChannelHandlerDelegate
- 直接已知子类:
AllChannelHandler,ConnectionOrderedChannelHandler,DirectChannelHandler,ExecutionChannelHandler,MessageOnlyChannelHandler
public class WrappedChannelHandler extends Object implements ChannelHandlerDelegate
-
-
构造器概要
构造器 构造器 说明 WrappedChannelHandler(ChannelHandler handler, URL url)
-
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 voidcaught(Channel channel, Throwable exception)on exception caught.voidclose()voidconnected(Channel channel)on channel connected.voiddisconnected(Channel channel)on channel disconnected.ExecutorServicegetExecutorService()已过时。ChannelHandlergetHandler()ExecutorServicegetPreferredExecutorService(Object msg)Currently, this method is mainly customized to facilitate the thread model on consumer side. 1.ExecutorServicegetSharedExecutorService()get the shared executor for current Server or ClientURLgetUrl()voidreceived(Channel channel, Object message)on message received.voidsent(Channel channel, Object message)on message sent.
-
-
-
构造器详细资料
-
WrappedChannelHandler
public WrappedChannelHandler(ChannelHandler handler, URL url)
-
-
方法详细资料
-
close
public void close()
-
connected
public void connected(Channel channel) throws RemotingException
从接口复制的说明:ChannelHandleron channel connected.- 指定者:
connected在接口中ChannelHandler- 参数:
channel- channel.- 抛出:
RemotingException
-
disconnected
public void disconnected(Channel channel) throws RemotingException
从接口复制的说明:ChannelHandleron channel disconnected.- 指定者:
disconnected在接口中ChannelHandler- 参数:
channel- channel.- 抛出:
RemotingException
-
sent
public void sent(Channel channel, Object message) throws RemotingException
从接口复制的说明:ChannelHandleron message sent.- 指定者:
sent在接口中ChannelHandler- 参数:
channel- channel.message- message.- 抛出:
RemotingException
-
received
public void received(Channel channel, Object message) throws RemotingException
从接口复制的说明:ChannelHandleron message received.- 指定者:
received在接口中ChannelHandler- 参数:
channel- channel.message- message.- 抛出:
RemotingException
-
caught
public void caught(Channel channel, Throwable exception) throws RemotingException
从接口复制的说明:ChannelHandleron exception caught.- 指定者:
caught在接口中ChannelHandler- 参数:
channel- channel.exception- exception.- 抛出:
RemotingException
-
getHandler
public ChannelHandler getHandler()
- 指定者:
getHandler在接口中ChannelHandlerDelegate
-
getUrl
public URL getUrl()
-
getPreferredExecutorService
public ExecutorService getPreferredExecutorService(Object msg)
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.- 参数:
msg-- 返回:
-
getSharedExecutorService
public ExecutorService getSharedExecutorService()
get the shared executor for current Server or Client- 返回:
-
getExecutorService
@Deprecated public ExecutorService getExecutorService()
已过时。
-
-