public class ChannelHandlerAdapter extends Object implements ChannelHandler
| 构造器和说明 |
|---|
ChannelHandlerAdapter() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
caught(Channel channel,
Throwable exception)
on exception caught.
|
void |
connected(Channel channel)
on channel connected.
|
void |
disconnected(Channel channel)
on channel disconnected.
|
void |
received(Channel channel,
Object message)
on message received.
|
void |
sent(Channel channel,
Object message)
on message sent.
|
public void connected(Channel channel) throws RemotingException
ChannelHandlerconnected 在接口中 ChannelHandlerchannel - channel.RemotingExceptionpublic void disconnected(Channel channel) throws RemotingException
ChannelHandlerdisconnected 在接口中 ChannelHandlerchannel - channel.RemotingExceptionpublic void sent(Channel channel, Object message) throws RemotingException
ChannelHandlersent 在接口中 ChannelHandlerchannel - channel.message - message.RemotingExceptionpublic void received(Channel channel, Object message) throws RemotingException
ChannelHandlerreceived 在接口中 ChannelHandlerchannel - channel.message - message.RemotingExceptionpublic void caught(Channel channel, Throwable exception) throws RemotingException
ChannelHandlercaught 在接口中 ChannelHandlerchannel - channel.exception - exception.RemotingExceptionCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.