Package io.dapr.client.domain
Enum Class UnlockResponseStatus
- All Implemented Interfaces:
Serializable
,Comparable<UnlockResponseStatus>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionInternal error.The desired target does not match.The target you want to unlock does not exist.The unlock operation succeeded. -
Method Summary
Modifier and TypeMethodDescriptiongetCode()
static UnlockResponseStatus
valueOf
(int code) Convert the status code to a UnlockResponseStatus object.static UnlockResponseStatus
Returns the enum constant of this class with the specified name.static UnlockResponseStatus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUCCESS
The unlock operation succeeded. -
LOCK_UNEXIST
The target you want to unlock does not exist. -
LOCK_BELONG_TO_OTHERS
The desired target does not match. -
INTERNAL_ERROR
Internal error.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getCode
-
valueOf
Convert the status code to a UnlockResponseStatus object.- Parameters:
code
- status code- Returns:
- UnlockResponseStatus
-