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 WANQueueFullBehavior 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
.
The 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 © 2023 Hazelcast, Inc.. All rights reserved.