protected class ServerCommon.MessageReciever extends Object implements Channel.Receiver
Modifier | Constructor and Description |
---|---|
protected |
MessageReciever() |
Modifier and Type | Method and Description |
---|---|
void |
handleEnd(Channel channel)
Handle an end-of-input condition on a channel.
|
void |
handleError(Channel channel,
IOException error)
Handle an error condition on the channel.
|
void |
handleMessage(Channel channel,
MessageInputStream message)
Handle an incoming message.
|
public void handleMessage(Channel channel, MessageInputStream message)
Channel.Receiver
Channel.receiveMessage(Receiver)
method must be called again.handleMessage
in interface Channel.Receiver
channel
- the channelmessage
- the messagepublic void handleError(Channel channel, IOException error)
Channel.Receiver
handleError
in interface Channel.Receiver
channel
- the channelerror
- the error conditionpublic void handleEnd(Channel channel)
Channel.Receiver
handleEnd
in interface Channel.Receiver
channel
- the channelCopyright © 2021 JBoss by Red Hat. All rights reserved.