Interface MessageHandler<T>
- Type Parameters:
T- 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.
Callback invoked for each message received on a subscribed channel.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonMessage(IncomingMessage<T> message) Handles a received message.
-
Method Details
-
onMessage
Handles a received message.- Parameters:
message- received message with lazy payload decoding
-