Interface Consumer.MessageHandler
- Enclosing interface:
Consumer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Contract to process a message.
-
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(Consumer.Context context, Message message) Process a message
-
Method Details
-
handle
Process a message- Parameters:
context- message contextmessage- message
-