Package com.hazelcast.config
Enum Class WanQueueFullBehavior
- All Implemented Interfaces:
Serializable
,Comparable<WanQueueFullBehavior>
,Constable
Determines the behavior of WAN replication
impl. In case of WAN event queues are full.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionInstruct WAN replication implementation to drop new events when WAN event queues are full.Instruct WAN replication implementation to throw an exception and doesn't allow further processing.Similar toTHROW_EXCEPTION
but only throws exception when WAN replication is active. -
Method Summary
Modifier and TypeMethodDescriptionstatic WanQueueFullBehavior
getByType
(int id) Returns the WANQueueFullBehavior as an enum.int
getId()
Gets the ID for the givenWanQueueFullBehavior
.static WanQueueFullBehavior
Returns the enum constant of this class with the specified name.static WanQueueFullBehavior[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DISCARD_AFTER_MUTATION
Instruct WAN replication implementation to drop new events when WAN event queues are full. -
THROW_EXCEPTION
Instruct WAN replication implementation to throw an exception and doesn't allow further processing. -
THROW_EXCEPTION_ONLY_IF_REPLICATION_ACTIVE
Similar toTHROW_EXCEPTION
but only throws exception when WAN replication is active. Discards the new events if WAN replication is stopped.
-
-
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
-
getId
public int getId()Gets the ID for the givenWanQueueFullBehavior
.The reason this ID is used instead of the ordinal value is that the ordinal value is more prone to changes due to reordering.
- Returns:
- the ID
-
getByType
Returns the WANQueueFullBehavior as an enum.- Returns:
- the WANQueueFullBehavior as an enum
-