public enum WANQueueFullBehavior extends Enum<WANQueueFullBehavior>
Enum Constant and Description |
---|
DISCARD_AFTER_MUTATION
Instruct WAN repl.
|
THROW_EXCEPTION
Instruct WAN repl.
|
Modifier and Type | Method and Description |
---|---|
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 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.Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.