public enum ShutdownReason extends Enum<ShutdownReason>
Enum Constant and Description |
---|
LEASE_LOST
Processing will be moved to a different record processor (fail over, load balancing use cases).
|
REQUESTED
Indicates that the entire application is being shutdown, and if desired the record processor will be given a
final chance to checkpoint.
|
SHARD_END
Terminate processing for this ShardRecordProcessor (resharding use case).
|
Modifier and Type | Method and Description |
---|---|
boolean |
canTransitionTo(ShutdownReason reason)
Indicates whether the given reason can override the current reason.
|
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 LEASE_LOST
public static final ShutdownReason SHARD_END
public static final ShutdownReason REQUESTED
ShardRecordProcessor#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 toCopyright © 2020. All rights reserved.