Interface MessageListener<T extends ChannelPayload>
- Type Parameters:
T- the payload type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Handles incoming messages for a specific channel.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(MessageContext<T> ctx, T payload) Invoked when a message is received.
-
Method Details
-
accept
Invoked when a message is received.- Parameters:
ctx- the message metadatapayload- the received data
-