public enum ShutdownReason extends Enum<ShutdownReason>
| Enum Constant and Description |
|---|
REQUESTED
Indicates that the entire application is being shutdown, and if desired the record processor will be given a
final chance to checkpoint.
|
TERMINATE
Terminate processing for this RecordProcessor (resharding use case).
|
ZOMBIE
Processing will be moved to a different record processor (fail over, load balancing use cases).
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canTransitionTo(ShutdownReason reason)
Indicates whether the given reason can override the current reason.
|
KinesisConsumerStates.ConsumerState |
getShutdownState() |
static ShutdownReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ShutdownReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ShutdownReason ZOMBIE
public static final ShutdownReason TERMINATE
public static final ShutdownReason REQUESTED
IRecordProcessor.shutdown(ShutdownInput), but
instead depend on a different interface for backward compatibility.public static ShutdownReason[] values()
for (ShutdownReason c : ShutdownReason.values()) System.out.println(c);
public static ShutdownReason 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 boolean canTransitionTo(ShutdownReason reason)
reason - the reason to transition topublic KinesisConsumerStates.ConsumerState getShutdownState()
Copyright © 2024. All rights reserved.