类 ExchangeHandlerDispatcher
- java.lang.Object
-
- com.alibaba.dubbo.remoting.exchange.support.ExchangeHandlerDispatcher
-
- 所有已实现的接口:
ChannelHandler,ExchangeHandler,TelnetHandler
public class ExchangeHandlerDispatcher extends Object implements ExchangeHandler
ExchangeHandlerDispatcher
-
-
构造器概要
构造器 构造器 说明 ExchangeHandlerDispatcher()ExchangeHandlerDispatcher(ChannelHandler... handlers)ExchangeHandlerDispatcher(Replier<?> replier)ExchangeHandlerDispatcher(Replier<?> replier, ChannelHandler... handlers)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ExchangeHandlerDispatcheraddChannelHandler(ChannelHandler handler)<T> ExchangeHandlerDispatcheraddReplier(Class<T> type, Replier<T> replier)voidcaught(Channel channel, Throwable exception)on exception caught.voidconnected(Channel channel)on channel connected.voiddisconnected(Channel channel)on channel disconnected.voidreceived(Channel channel, Object message)on message received.ExchangeHandlerDispatcherremoveChannelHandler(ChannelHandler handler)<T> ExchangeHandlerDispatcherremoveReplier(Class<T> type)Objectreply(ExchangeChannel channel, Object request)reply.voidsent(Channel channel, Object message)on message sent.Stringtelnet(Channel channel, String message)telnet.
-
-
-
构造器详细资料
-
ExchangeHandlerDispatcher
public ExchangeHandlerDispatcher()
-
ExchangeHandlerDispatcher
public ExchangeHandlerDispatcher(Replier<?> replier)
-
ExchangeHandlerDispatcher
public ExchangeHandlerDispatcher(ChannelHandler... handlers)
-
ExchangeHandlerDispatcher
public ExchangeHandlerDispatcher(Replier<?> replier, ChannelHandler... handlers)
-
-
方法详细资料
-
addChannelHandler
public ExchangeHandlerDispatcher addChannelHandler(ChannelHandler handler)
-
removeChannelHandler
public ExchangeHandlerDispatcher removeChannelHandler(ChannelHandler handler)
-
addReplier
public <T> ExchangeHandlerDispatcher addReplier(Class<T> type, Replier<T> replier)
-
removeReplier
public <T> ExchangeHandlerDispatcher removeReplier(Class<T> type)
-
reply
public Object reply(ExchangeChannel channel, Object request) throws RemotingException
从接口复制的说明:ExchangeHandlerreply.- 指定者:
reply在接口中ExchangeHandler- 返回:
- response
- 抛出:
RemotingException
-
connected
public void connected(Channel channel)
从接口复制的说明:ChannelHandleron channel connected.- 指定者:
connected在接口中ChannelHandler- 参数:
channel- channel.
-
disconnected
public void disconnected(Channel channel)
从接口复制的说明:ChannelHandleron channel disconnected.- 指定者:
disconnected在接口中ChannelHandler- 参数:
channel- channel.
-
sent
public void sent(Channel channel, Object message)
从接口复制的说明:ChannelHandleron message sent.- 指定者:
sent在接口中ChannelHandler- 参数:
channel- channel.message- message.
-
received
public void received(Channel channel, Object message)
从接口复制的说明:ChannelHandleron message received.- 指定者:
received在接口中ChannelHandler- 参数:
channel- channel.message- message.
-
caught
public void caught(Channel channel, Throwable exception)
从接口复制的说明:ChannelHandleron exception caught.- 指定者:
caught在接口中ChannelHandler- 参数:
channel- channel.exception- exception.
-
telnet
public String telnet(Channel channel, String message) throws RemotingException
从接口复制的说明:TelnetHandlertelnet.- 指定者:
telnet在接口中TelnetHandler- 抛出:
RemotingException
-
-