Enum CheckAndSetCompatibility.Unsupported
- java.lang.Object
-
- java.lang.Enum<CheckAndSetCompatibility.Unsupported>
-
- com.palantir.atlasdb.keyvalue.api.CheckAndSetCompatibility.Unsupported
-
- All Implemented Interfaces:
CheckAndSetCompatibility
,Serializable
,Comparable<CheckAndSetCompatibility.Unsupported>
- Enclosing interface:
- CheckAndSetCompatibility
public static enum CheckAndSetCompatibility.Unsupported extends Enum<CheckAndSetCompatibility.Unsupported> implements CheckAndSetCompatibility
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.palantir.atlasdb.keyvalue.api.CheckAndSetCompatibility
CheckAndSetCompatibility.Supported, CheckAndSetCompatibility.Unsupported
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
consistentOnFailure()
If true, on CAS or PUE failure other than aCheckAndSetException
or aKeyAlreadyExistsException
, the values may or may not have been persisted but the state is guaranteed to be consistent: any subsequent reads will be repeatable.boolean
supportsCheckAndSetOperations()
If false, thisKeyValueService
does not support check and set operations.boolean
supportsDetailOnFailure()
If false, there are no guarantees that aCheckAndSetException.getActualValues()
orKeyAlreadyExistsException.getExistingKeys()
from exceptions thrown by the theKeyValueService
will actually return any meaningful data (other than the fact that the operation failed).static CheckAndSetCompatibility.Unsupported
valueOf(String name)
Returns the enum constant of this type with the specified name.static CheckAndSetCompatibility.Unsupported[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final CheckAndSetCompatibility.Unsupported INSTANCE
-
-
Method Detail
-
values
public static CheckAndSetCompatibility.Unsupported[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CheckAndSetCompatibility.Unsupported c : CheckAndSetCompatibility.Unsupported.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CheckAndSetCompatibility.Unsupported valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
supportsCheckAndSetOperations
public boolean supportsCheckAndSetOperations()
Description copied from interface:CheckAndSetCompatibility
If false, thisKeyValueService
does not support check and set operations.- Specified by:
supportsCheckAndSetOperations
in interfaceCheckAndSetCompatibility
-
supportsDetailOnFailure
public boolean supportsDetailOnFailure()
Description copied from interface:CheckAndSetCompatibility
If false, there are no guarantees that aCheckAndSetException.getActualValues()
orKeyAlreadyExistsException.getExistingKeys()
from exceptions thrown by the theKeyValueService
will actually return any meaningful data (other than the fact that the operation failed). This method should only be called ifCheckAndSetCompatibility.supportsCheckAndSetOperations()
is true. If it is not true, behaviour is undefined.- Specified by:
supportsDetailOnFailure
in interfaceCheckAndSetCompatibility
-
consistentOnFailure
public boolean consistentOnFailure()
Description copied from interface:CheckAndSetCompatibility
If true, on CAS or PUE failure other than aCheckAndSetException
or aKeyAlreadyExistsException
, the values may or may not have been persisted but the state is guaranteed to be consistent: any subsequent reads will be repeatable. If false, the value may have been persisted in a way that subsequent reads are not repeatable: if a read before the operation could have returned values from a set S, it can non-deterministically return a value from S U {newValue} afterwards. This method should only be called ifCheckAndSetCompatibility.supportsCheckAndSetOperations()
is true. If it is not true, behaviour is undefined.- Specified by:
consistentOnFailure
in interfaceCheckAndSetCompatibility
-
-