M
- The message typepublic interface MessageHandler<M>
DemuxingIoHandler
forwards
messageReceived</tt> or <tt>messageSent
events to. You have to
register your handler with the type of the message you want to get notified
using DemuxingIoHandler.addReceivedMessageHandler(Class, MessageHandler)
or DemuxingIoHandler.addSentMessageHandler(Class, MessageHandler)
.Modifier and Type | Field and Description |
---|---|
static MessageHandler<Object> |
NOOP
A
MessageHandler that does nothing. |
Modifier and Type | Method and Description |
---|---|
void |
handleMessage(IoSession session,
M message)
Invoked when the specific type of message is received from or sent to
the specified
session . |
static final MessageHandler<Object> NOOP
MessageHandler
that does nothing. This is useful when
you want to ignore a message of a specific type silently.Copyright © 2004–2024 Apache MINA Project. All rights reserved.