Interface CommandBusConnector.Handler
- Enclosing interface:
CommandBusConnector
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A functional interface representing a handler for incoming command messages. The handler processes the command
and uses the provided
CommandBusConnector.ResultCallback to report the result.-
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(CommandMessage commandMessage, CommandBusConnector.ResultCallback callback) Handles the incoming command message.
-
Method Details
-
handle
void handle(@Nonnull CommandMessage commandMessage, @Nonnull CommandBusConnector.ResultCallback callback) Handles the incoming command message.- Parameters:
commandMessage- The command message to handle.callback- The callback to invoke with the result of handling the command.
-