Package org.jrobin.core
Enum RrdJRobin14FileBackend.LockMode
- java.lang.Object
-
- java.lang.Enum<RrdJRobin14FileBackend.LockMode>
-
- org.jrobin.core.RrdJRobin14FileBackend.LockMode
-
- All Implemented Interfaces:
Serializable
,Comparable<RrdJRobin14FileBackend.LockMode>
- Enclosing class:
- RrdJRobin14FileBackend
public static enum RrdJRobin14FileBackend.LockMode extends Enum<RrdJRobin14FileBackend.LockMode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXCEPTION_IF_LOCKED
NO_LOCKS
WAIT_IF_LOCKED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RrdJRobin14FileBackend.LockMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static RrdJRobin14FileBackend.LockMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EXCEPTION_IF_LOCKED
public static final RrdJRobin14FileBackend.LockMode EXCEPTION_IF_LOCKED
-
WAIT_IF_LOCKED
public static final RrdJRobin14FileBackend.LockMode WAIT_IF_LOCKED
-
NO_LOCKS
public static final RrdJRobin14FileBackend.LockMode NO_LOCKS
-
-
Method Detail
-
values
public static RrdJRobin14FileBackend.LockMode[] 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 (RrdJRobin14FileBackend.LockMode c : RrdJRobin14FileBackend.LockMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RrdJRobin14FileBackend.LockMode 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
-
-