public enum AcceptanceDecision extends Enum<AcceptanceDecision>
remote modification operation
should be accepted
or discarded.
*MapRemoteOperations
,
SetRemoteOperations
Enum Constant and Description |
---|
ACCEPT
Acceptance decision -- the remote modification operation is applied to the local
ChronicleHash state. |
DISCARD
Discard decision -- the remote modification operation is rejected.
|
Modifier and Type | Method and Description |
---|---|
static AcceptanceDecision |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AcceptanceDecision[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AcceptanceDecision ACCEPT
ChronicleHash
state. This decision should also been returned, when the actual
state modification is not needed (for example, remote remove entry
operation, while
the entry is not present in the ChronicleHash locally), but the operation is generally
considered acceptable.public static final AcceptanceDecision DISCARD
public static AcceptanceDecision[] values()
for (AcceptanceDecision c : AcceptanceDecision.values()) System.out.println(c);
public static AcceptanceDecision 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 nullCopyright © 2015. All rights reserved.