-
- All Implemented Interfaces:
-
java.io.Serializable,java.lang.Comparable,org.enodeframework.common.extensions.MessageMonitor.MonitorCallback
public enum NoOpMessageMonitorCallback implements MessageMonitor.MonitorCallback
A NoOp MessageMonitor callback
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCESingleton instance of a NoOpMessageMonitorCallback.
-
Method Summary
Modifier and Type Method Description voidreportSuccess()Notify the monitor that the message was handled successfully voidreportFailure(Throwable cause)Notify the monitor that a failure occurred during processing of the message voidreportIgnored()Notify the monitor that the message was ignored static Array<NoOpMessageMonitorCallback>values()static NoOpMessageMonitorCallbackvalueOf(String name)-
-
Method Detail
-
reportSuccess
void reportSuccess()
Notify the monitor that the message was handled successfully
-
reportFailure
void reportFailure(Throwable cause)
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
-
values
static Array<NoOpMessageMonitorCallback> values()
-
valueOf
static NoOpMessageMonitorCallback valueOf(String name)
-
-
-
-