public enum WANQueueFullBehavior extends Enum<WANQueueFullBehavior>
Enum Constant and Description |
---|
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 to
THROW_EXCEPTION but only throws exception when WAN replication is active. |
Modifier and Type | Method and Description |
---|---|
static WANQueueFullBehavior |
getByType(int id)
Returns the EntryEventType as an enum.
|
int |
getId()
Gets the ID for the given
WANQueueFullBehavior . |
static WANQueueFullBehavior |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WANQueueFullBehavior[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WANQueueFullBehavior DISCARD_AFTER_MUTATION
public static final WANQueueFullBehavior THROW_EXCEPTION
public static final WANQueueFullBehavior THROW_EXCEPTION_ONLY_IF_REPLICATION_ACTIVE
THROW_EXCEPTION
but only throws exception when WAN replication is active.
Discards the new events if WAN replication is stopped.public static WANQueueFullBehavior[] values()
for (WANQueueFullBehavior c : WANQueueFullBehavior.values()) System.out.println(c);
public static WANQueueFullBehavior 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 int getId()
WANQueueFullBehavior
.
This reason this ID is used instead of an the ordinal value is that the ordinal value is more prone to changes due to reordering.
public static WANQueueFullBehavior getByType(int id)
Copyright © 2018 Hazelcast, Inc.. All rights reserved.