Enum Class NoOpMessageMonitor
- All Implemented Interfaces:
Serializable,Comparable<NoOpMessageMonitor>,Constable,MessageMonitor<Message>
A message monitor that returns a NoOp message 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>>Nested classes/interfaces inherited from interface org.axonframework.messaging.monitoring.MessageMonitor
MessageMonitor.MonitorCallback -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic NoOpMessageMonitorinstance()Returns the instance of{@link NoOpMessageMonitor}.onMessageIngested(Message message) Takes a message and returns a callback that should be used to inform the message monitor about the result of processing the messagestatic NoOpMessageMonitorReturns the enum constant of this class with the specified name.static NoOpMessageMonitor[]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
onMessagesIngested
-
Enum Constant Details
-
INSTANCE
Singleton instance of aNoOpMessageMonitor.
-
-
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
-
instance
Returns the instance of{@link NoOpMessageMonitor}. This method is a convenience method, which can be used as a lambda expression- Returns:
- the instance of
{@link NoOpMessageMonitor}
-
onMessageIngested
Description copied from interface:MessageMonitorTakes a message and returns a callback that should be used to inform the message monitor about the result of processing the message- Specified by:
onMessageIngestedin interfaceMessageMonitor<Message>- Parameters:
message- the message to monitor- Returns:
- the callback
-