public enum NoOpMessageMonitor extends Enum<NoOpMessageMonitor> implements MessageMonitor<Message<?>>
MessageMonitor.MonitorCallback
Enum Constant and Description |
---|
INSTANCE
Singleton instance of a
NoOpMessageMonitor . |
Modifier and Type | Method and Description |
---|---|
static NoOpMessageMonitor |
instance()
Returns the instance of
{@link NoOpMessageMonitor} . |
MessageMonitor.MonitorCallback |
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 message
|
static NoOpMessageMonitor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NoOpMessageMonitor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
onMessagesIngested
public static final NoOpMessageMonitor INSTANCE
NoOpMessageMonitor
.public static NoOpMessageMonitor[] values()
for (NoOpMessageMonitor c : NoOpMessageMonitor.values()) System.out.println(c);
public static NoOpMessageMonitor 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 static NoOpMessageMonitor instance()
{@link NoOpMessageMonitor}
.
This method is a convenience method, which can be used as a lambda expression{@link NoOpMessageMonitor}
public MessageMonitor.MonitorCallback onMessageIngested(@Nonnull Message<?> message)
MessageMonitor
onMessageIngested
in interface MessageMonitor<Message<?>>
message
- the message to monitorCopyright © 2010–2024. All rights reserved.