Enum Class MultiClusterGigaSpace.FailoverPolicy
java.lang.Object
java.lang.Enum<MultiClusterGigaSpace.FailoverPolicy>
org.openspaces.core.multicluster.MultiClusterGigaSpace.FailoverPolicy
- All Implemented Interfaces:
Serializable, Comparable<MultiClusterGigaSpace.FailoverPolicy>, Constable
- Enclosing interface:
MultiClusterGigaSpace
public static enum MultiClusterGigaSpace.FailoverPolicy
extends Enum<MultiClusterGigaSpace.FailoverPolicy>
What happens when the cluster an operation was routed to is unavailable.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPromote the first healthy cluster in the priority list and retry there.Propagate the failure immediately.Keep serving reads from any healthy cluster; reject mutations.Retry the same cluster with exponential backoff before surfacing the failure. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static MultiClusterGigaSpace.FailoverPolicy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AUTO_FAILOVER_NEXT_AVAILABLE
Promote the first healthy cluster in the priority list and retry there. -
FALLBACK_TO_READ_ONLY
Keep serving reads from any healthy cluster; reject mutations. -
RETRY_WITH_BACKOFF
Retry the same cluster with exponential backoff before surfacing the failure. -
FAIL_FAST
Propagate the failure immediately.
-
-
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
-