Enum Class StandbyUpdateListener.SuspendReason
java.lang.Object
java.lang.Enum<StandbyUpdateListener.SuspendReason>
org.apache.kafka.streams.processor.StandbyUpdateListener.SuspendReason
- All Implemented Interfaces:
Serializable, Comparable<StandbyUpdateListener.SuspendReason>, Constable
- Enclosing interface:
StandbyUpdateListener
public static enum StandbyUpdateListener.SuspendReason
extends Enum<StandbyUpdateListener.SuspendReason>
The reason why a standby or warm-up task stopped being updated.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static StandbyUpdateListener.SuspendReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
MIGRATED
The task stopped being updated as a standby or warm-up task, and its state store was closed. This covers every reason other than a promotion: the task was revoked, or it was assigned to another instance, or this instance is shutting down. -
PROMOTED
The task stopped being updated as a standby or warm-up task because this instance is taking it over as an active task. Its state store stays open and keeps its contents, so the active task resumes restoring where the update left off rather than from the beginning of the changelog. Restoring as an active task is reported throughStateRestoreListener.
-
-
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
-