@FunctionalInterface public interface MessageHandler extends Serializable
MessageManager.setMessageHandler(MessageHandler)
Modifier and Type | Interface and Description |
---|---|
static interface |
MessageHandler.MessageContext
The context of the message.
|
Modifier and Type | Method and Description |
---|---|
void |
handleMessage(MessageHandler.MessageContext context)
Handles a message when it is added to a topic.
|
void handleMessage(MessageHandler.MessageContext context)
context
- the context of the message, not null
Copyright © 2022. All rights reserved.