@SPI(scope=FRAMEWORK) public interface ChannelHandler
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
void connected(Channel channel) throws RemotingException
channel - channel.RemotingExceptionvoid disconnected(Channel channel) throws RemotingException
channel - channel.RemotingExceptionvoid sent(Channel channel, Object message) throws RemotingException
channel - channel.message - message.RemotingExceptionvoid received(Channel channel, Object message) throws RemotingException
channel - channel.message - message.RemotingExceptionvoid caught(Channel channel, Throwable exception) throws RemotingException
channel - channel.exception - exception.RemotingExceptionCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.