org.exolab.core.foundation
Class LockStatus

java.lang.Object
  extended by org.exolab.core.foundation.LockStatus
All Implemented Interfaces:
java.io.Serializable

public final class LockStatus
extends java.lang.Object
implements java.io.Serializable

This class defines the various states of a lock.. ON the lock has been granted TIMEOUT the lock has timed out DEADLOCK the lock has caused a deadlock OFF the lock is unlocked

Version:
$Revision: 1.1 $ $Date: 2000/02/22 07:37:55 $
Author:
Jim Alateras
See Also:
Serialized Form

Field Summary
static LockStatus DEADLOCK
           
static LockStatus GRANTED
          Instatiate instances related to each of the enumerations
static LockStatus RELEASED
           
static LockStatus TIMEOUT
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          Return true iff the two specified object are of the same type and their ordinal values are identical.
 int getOrd()
          Returns the ordinal value for this state
static int size()
          Returns the number of states in this enumeration
 java.lang.String toString()
          Returns the name of this state
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

GRANTED

public static final LockStatus GRANTED
Instatiate instances related to each of the enumerations


TIMEOUT

public static final LockStatus TIMEOUT

DEADLOCK

public static final LockStatus DEADLOCK

RELEASED

public static final LockStatus RELEASED
Method Detail

getOrd

public int getOrd()
Returns the ordinal value for this state

Returns:
int

toString

public java.lang.String toString()
Returns the name of this state

Overrides:
toString in class java.lang.Object
Returns:
String

size

public static int size()
Returns the number of states in this enumeration

Returns:
int

equals

public boolean equals(java.lang.Object obj)
Return true iff the two specified object are of the same type and their ordinal values are identical.

Overrides:
equals in class java.lang.Object
Parameters:
obj - object to compare against
Returns:
boolean true if objects are equivalent


Copyright © 1999-2012 The Exolab Group. All Rights Reserved.