com.tc.object.locks
Enum LockLevel

java.lang.Object
  extended by java.lang.Enum<LockLevel>
      extended by com.tc.object.locks.LockLevel
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<LockLevel>

public enum LockLevel
extends java.lang.Enum<LockLevel>


Enum Constant Summary
CONCURRENT
           
READ
           
SYNCHRONOUS_WRITE
           
WRITE
           
 
Field Summary
static int CONCURRENT_LEVEL
           
static int READ_LEVEL
           
static int SYNCHRONOUS_WRITE_LEVEL
           
static int WRITE_LEVEL
           
 
Method Summary
static LockLevel fromInt(int integer)
           
 boolean isRead()
           
 boolean isSyncWrite()
           
 boolean isWrite()
           
 int toInt()
           
static LockLevel valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static LockLevel[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
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
 

Enum Constant Detail

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
Field Detail

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
Method Detail

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.