public enum WanAcknowledgeType extends Enum<WanAcknowledgeType>
Enum Constant and Description |
---|
ACK_ON_OPERATION_COMPLETE
Wait till the operation is complete on target cluster.
|
ACK_ON_RECEIPT
ACK after WAN operation is received by the target cluster (without waiting the result of actual operation invocation).
|
Modifier and Type | Method and Description |
---|---|
static WanAcknowledgeType |
getById(int id)
Returns the
WanAcknowledgeType for the given ID. |
int |
getId()
Gets the ID for the given
WanAcknowledgeType . |
static WanAcknowledgeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WanAcknowledgeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WanAcknowledgeType ACK_ON_RECEIPT
public static final WanAcknowledgeType ACK_ON_OPERATION_COMPLETE
public static WanAcknowledgeType[] values()
for (WanAcknowledgeType c : WanAcknowledgeType.values()) System.out.println(c);
public static WanAcknowledgeType 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()
WanAcknowledgeType
.
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 WanAcknowledgeType getById(int id)
WanAcknowledgeType
for the given ID.WanAcknowledgeType
found or null
if not foundCopyright © 2021 Hazelcast, Inc.. All Rights Reserved.