Enum Class NoOpMessageMonitorCallback
java.lang.Object
java.lang.Enum<NoOpMessageMonitorCallback>
org.axonframework.messaging.monitoring.NoOpMessageMonitorCallback
- All Implemented Interfaces:
Serializable,Comparable<NoOpMessageMonitorCallback>,Constable,MessageMonitor.MonitorCallback
public enum NoOpMessageMonitorCallback
extends Enum<NoOpMessageMonitorCallback>
implements MessageMonitor.MonitorCallback
A NoOp MessageMonitor callback
- Since:
- 3.0
- Author:
- Marijn van Zelst
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
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 successfullystatic NoOpMessageMonitorCallbackReturns the enum constant of this class with the specified name.static NoOpMessageMonitorCallback[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface org.axonframework.messaging.monitoring.MessageMonitor.MonitorCallback
complete
-
Enum Constant Details
-
INSTANCE
Singleton instance of aNoOpMessageMonitorCallback.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
reportSuccess
public void reportSuccess()Description copied from interface:MessageMonitor.MonitorCallbackNotify the monitor that the message was handled successfully- Specified by:
reportSuccessin interfaceMessageMonitor.MonitorCallback
-
reportFailure
Description copied from interface:MessageMonitor.MonitorCallbackNotify the monitor that a failure occurred during processing of the message- Specified by:
reportFailurein interfaceMessageMonitor.MonitorCallback- Parameters:
cause- ornullif unknown
-
reportIgnored
public void reportIgnored()Description copied from interface:MessageMonitor.MonitorCallbackNotify the monitor that the message was ignored- Specified by:
reportIgnoredin interfaceMessageMonitor.MonitorCallback
-