类 ExchangeHandlerDispatcher
-
- com.alibaba.dubbo.remoting.exchange.support.ExchangeHandlerDispatcher
-
- 所有已实现的接口:
ChannelHandler
,ExchangeHandler
,TelnetHandler
public class ExchangeHandlerDispatcher extends implements ExchangeHandler
ExchangeHandlerDispatcher
-
-
构造器概要
构造器 构造器 说明 ExchangeHandlerDispatcher()
ExchangeHandlerDispatcher(ChannelHandler... handlers)
ExchangeHandlerDispatcher(Replier<?> replier)
ExchangeHandlerDispatcher(Replier<?> replier, ChannelHandler... handlers)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ExchangeHandlerDispatcher
addChannelHandler(ChannelHandler handler)
<T> ExchangeHandlerDispatcher
<T> type, Replier<T> replier)
void
caught(Channel channel, exception)
on exception caught.void
connected(Channel channel)
on channel connected.void
disconnected(Channel channel)
on channel disconnected.void
received(Channel channel, message)
on message received.ExchangeHandlerDispatcher
removeChannelHandler(ChannelHandler handler)
<T> ExchangeHandlerDispatcher
<T> type)
reply(ExchangeChannel channel, request)
reply.void
sent(Channel channel, message)
on message sent.telnet(Channel channel, 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> <T> type, Replier<T> replier)
-
removeReplier
public <T> <T> type)
-
reply
public reply(ExchangeChannel channel, request) throws RemotingException
从接口复制的说明:ExchangeHandler
reply.- 指定者:
reply
在接口中ExchangeHandler
- 返回:
- response
- 抛出:
RemotingException
-
connected
public void connected(Channel channel)
从接口复制的说明:ChannelHandler
on channel connected.- 指定者:
connected
在接口中ChannelHandler
- 参数:
channel
- channel.
-
disconnected
public void disconnected(Channel channel)
从接口复制的说明:ChannelHandler
on channel disconnected.- 指定者:
disconnected
在接口中ChannelHandler
- 参数:
channel
- channel.
-
sent
public void sent(Channel channel, message)
从接口复制的说明:ChannelHandler
on message sent.- 指定者:
sent
在接口中ChannelHandler
- 参数:
channel
- channel.message
- message.
-
received
public void received(Channel channel, message)
从接口复制的说明:ChannelHandler
on message received.- 指定者:
received
在接口中ChannelHandler
- 参数:
channel
- channel.message
- message.
-
caught
public void caught(Channel channel, exception)
从接口复制的说明:ChannelHandler
on exception caught.- 指定者:
caught
在接口中ChannelHandler
- 参数:
channel
- channel.exception
- exception.
-
telnet
public telnet(Channel channel, message) throws RemotingException
从接口复制的说明:TelnetHandler
telnet.- 指定者:
telnet
在接口中TelnetHandler
- 抛出:
RemotingException
-
-