Package com.mckoi.database
Class Lock
- java.lang.Object
-
- com.mckoi.database.Lock
-
public final class Lock extends java.lang.Object
This is a lock on a table in the LockingMechanism class. A new instance of this class is created whenever a new lock for a table is made. A Lock may be either a READ lock or a WRITE lock. A lock is within a LockingQueue object.- Author:
- Tobias Downer
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
-
-
-
Field Detail
-
READ
public static final int READ
These statics are used to define whether the lock is a READ or WRITE lock.- See Also:
- Constant Field Values
-
WRITE
public static final int WRITE
- See Also:
- Constant Field Values
-
-