Package org.axonframework.monitoring
Interface MessageMonitor.MonitorCallback
- All Known Implementing Classes:
NoOpMessageMonitorCallback
- Enclosing interface:
MessageMonitor<T extends Message<?>>
public static interface MessageMonitor.MonitorCallback
An interface to let the message processor inform the message monitor of the result
of processing the message
-
Method Summary
Modifier and TypeMethodDescriptionvoidreportFailure(Throwable cause) Notify the monitor that a failure occurred during processing of the messagevoidNotify the monitor that the message was ignoredvoidNotify the monitor that the message was handled successfully
-
Method Details
-
reportSuccess
void reportSuccess()Notify the monitor that the message was handled successfully -
reportFailure
Notify the monitor that a failure occurred during processing of the message- Parameters:
cause- ornullif unknown
-
reportIgnored
void reportIgnored()Notify the monitor that the message was ignored
-