Enum WriteResult
- java.lang.Object
-
- java.lang.Enum<WriteResult>
-
- com.opencloud.rhino.facilities.sessionownership.WriteResult
-
- All Implemented Interfaces:
Serializable
,Comparable<WriteResult>
public enum WriteResult extends Enum<WriteResult>
Session ownership facility write result types.
- Since:
- Rhino 2.6.1
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FAILURE_CAS_REJECTED
Indicates that the write operation failed because the expected value for the key before the write did not match the actual value.FAILURE_EXCEPTION
Indicates that the write operation failed because an exception occurred.FAILURE_OTHER
Indicates that the write operation failed due to some reason that was not CAS or exception related.SUCCESS
Indicates that the write operation was successful
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static WriteResult
valueOf(String name)
Returns the enum constant of this type with the specified name.static WriteResult[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUCCESS
public static final WriteResult SUCCESS
Indicates that the write operation was successful
- Since:
- Rhino 2.6.1
-
FAILURE_CAS_REJECTED
public static final WriteResult FAILURE_CAS_REJECTED
Indicates that the write operation failed because the expected value for the key before the write did not match the actual value.
- Since:
- Rhino 2.6.1
-
FAILURE_EXCEPTION
public static final WriteResult FAILURE_EXCEPTION
Indicates that the write operation failed because an exception occurred.
- Since:
- Rhino 2.6.1
-
FAILURE_OTHER
public static final WriteResult FAILURE_OTHER
Indicates that the write operation failed due to some reason that was not CAS or exception related.
- Since:
- Rhino 2.6.1
-
-
Method Detail
-
values
public static WriteResult[] 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 (WriteResult c : WriteResult.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WriteResult 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
-
-