com.tc.object.locks
Enum LockLevel
java.lang.Object
java.lang.Enum<LockLevel>
com.tc.object.locks.LockLevel
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<LockLevel>
public enum LockLevel
- extends java.lang.Enum<LockLevel>
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
READ
public static final LockLevel READ
WRITE
public static final LockLevel WRITE
SYNCHRONOUS_WRITE
public static final LockLevel SYNCHRONOUS_WRITE
CONCURRENT
public static final LockLevel CONCURRENT
READ_LEVEL
public static final int READ_LEVEL
- See Also:
- Constant Field Values
WRITE_LEVEL
public static final int WRITE_LEVEL
- See Also:
- Constant Field Values
SYNCHRONOUS_WRITE_LEVEL
public static final int SYNCHRONOUS_WRITE_LEVEL
- See Also:
- Constant Field Values
CONCURRENT_LEVEL
public static final int CONCURRENT_LEVEL
- See Also:
- Constant Field Values
values
public static LockLevel[] 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 (LockLevel c : LockLevel.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static LockLevel valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
isWrite
public boolean isWrite()
isRead
public boolean isRead()
isSyncWrite
public boolean isSyncWrite()
toInt
public int toInt()
fromInt
public static LockLevel fromInt(int integer)
Copyright © 2010 Terracotta, Inc.. All Rights Reserved.