public enum RecoveryStrategy extends Enum<RecoveryStrategy>
GridBucket detects that bucket state is missed, it applies this strategy to react.| Enum Constant and Description |
|---|
RECONSTRUCT
Initialize bucket yet another time.
|
THROW_BUCKET_NOT_FOUND_EXCEPTION
Throw
BucketNotFoundException. |
| Modifier and Type | Method and Description |
|---|---|
static RecoveryStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RecoveryStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RecoveryStrategy RECONSTRUCT
public static final RecoveryStrategy THROW_BUCKET_NOT_FOUND_EXCEPTION
BucketNotFoundException.
Use this strategy if consistency is more preferred than availability.public static RecoveryStrategy[] values()
for (RecoveryStrategy c : RecoveryStrategy.values()) System.out.println(c);
public static RecoveryStrategy 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 nullCopyright © 2021. All rights reserved.