Package com.vaadin.collaborationengine
Interface MessageHandler
-
- All Superinterfaces:
Serializable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface MessageHandler extends Serializable
Functional interface that defines how to handle a message when it is added to a topic.- Author:
- Vaadin Ltd
- See Also:
MessageManager.setMessageHandler(MessageHandler)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
MessageHandler.MessageContext
The context of the message.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
handleMessage(MessageHandler.MessageContext context)
Handles a message when it is added to a topic.
-
-
-
Method Detail
-
handleMessage
void handleMessage(MessageHandler.MessageContext context)
Handles a message when it is added to a topic.- Parameters:
context
- the context of the message, notnull
-
-