接口 ChannelHandler
-
- 所有已知子接口:
ChannelHandlerDelegate,ExchangeHandler
- 所有已知实现类:
AbstractChannel,AbstractChannelHandlerDelegate,AbstractClient,AbstractEndpoint,AbstractPeer,AbstractServer,AllChannelHandler,ChannelHandlerAdapter,ChannelHandlerDispatcher,ConnectionOrderedChannelHandler,DecodeHandler,ExchangeHandlerAdapter,ExchangeHandlerDispatcher,ExecutionChannelHandler,GrizzlyClient,GrizzlyServer,HeaderExchangeHandler,HeartbeatHandler,MessageOnlyChannelHandler,MinaClient,MinaServer,MultiMessageHandler,NettyClient,NettyClient,NettyServer,NettyServer,TelnetHandlerAdapter,WrappedChannelHandler
@SPI public interface ChannelHandler
ChannelHandler. (API, Prototype, ThreadSafe)
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 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.voidsent(Channel channel, Object message)on message sent.
-
-
-
方法详细资料
-
connected
void connected(Channel channel) throws RemotingException
on channel connected.- 参数:
channel- channel.- 抛出:
RemotingException
-
disconnected
void disconnected(Channel channel) throws RemotingException
on channel disconnected.- 参数:
channel- channel.- 抛出:
RemotingException
-
sent
void sent(Channel channel, Object message) throws RemotingException
on message sent.- 参数:
channel- channel.message- message.- 抛出:
RemotingException
-
received
void received(Channel channel, Object message) throws RemotingException
on message received.- 参数:
channel- channel.message- message.- 抛出:
RemotingException
-
caught
void caught(Channel channel, Throwable exception) throws RemotingException
on exception caught.- 参数:
channel- channel.exception- exception.- 抛出:
RemotingException
-
-