public enum NoOpMessageMonitorCallback extends Enum<NoOpMessageMonitorCallback> implements MessageMonitor.MonitorCallback
Enum Constant and Description |
---|
INSTANCE
Singleton instance of a
NoOpMessageMonitorCallback . |
Modifier and Type | Method and Description |
---|---|
void |
reportFailure(Throwable cause)
Notify the monitor that a failure occurred during processing of the message
|
void |
reportIgnored()
Notify the monitor that the message was ignored
|
void |
reportSuccess()
Notify the monitor that the message was handled successfully
|
static NoOpMessageMonitorCallback |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NoOpMessageMonitorCallback[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NoOpMessageMonitorCallback INSTANCE
NoOpMessageMonitorCallback
.public static NoOpMessageMonitorCallback[] values()
for (NoOpMessageMonitorCallback c : NoOpMessageMonitorCallback.values()) System.out.println(c);
public static NoOpMessageMonitorCallback valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic void reportSuccess()
MessageMonitor.MonitorCallback
reportSuccess
in interface MessageMonitor.MonitorCallback
public void reportFailure(Throwable cause)
MessageMonitor.MonitorCallback
reportFailure
in interface MessageMonitor.MonitorCallback
cause
- or null
if unknownpublic void reportIgnored()
MessageMonitor.MonitorCallback
reportIgnored
in interface MessageMonitor.MonitorCallback
Copyright © 2010–2024. All rights reserved.