Interface MessageFunctions.MessageConsumer<MSG>
- Type Parameters:
MSG
- the type of the message that is handled
- Enclosing class:
- MessageFunctions
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface used to handle messages.
-
Method Summary
Modifier and TypeMethodDescriptiondefault MessageFunctions.MessageConsumer<MSG>
void
handle
(MSG msg, NetworkEvent.Context context) Handles the message.
-
Method Details
-
handle
Handles the message.- Parameters:
msg
- the message to handlecontext
- the context containing the direction, the sender and the connection
-
andThen
-