public static enum ConsumerStoppedEvent.Reason extends java.lang.Enum<ConsumerStoppedEvent.Reason>
| Enum Constant and Description |
|---|
ERROR
A
Error was thrown. |
FENCED
The transactional producer was fenced and the container
stopContainerWhenFenced property is true. |
NORMAL
The consumer was stopped because the container was stopped.
|
| Modifier and Type | Method and Description |
|---|---|
static ConsumerStoppedEvent.Reason |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ConsumerStoppedEvent.Reason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConsumerStoppedEvent.Reason NORMAL
public static final ConsumerStoppedEvent.Reason FENCED
stopContainerWhenFenced property is true.public static final ConsumerStoppedEvent.Reason ERROR
Error was thrown.public static ConsumerStoppedEvent.Reason[] values()
for (ConsumerStoppedEvent.Reason c : ConsumerStoppedEvent.Reason.values()) System.out.println(c);
public static ConsumerStoppedEvent.Reason valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null