Class Lock

java.lang.Object
com.mckoi.database.Lock

public final class Lock extends 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
  • Field Details

    • READ

      public static final int READ
      These statics are used to define whether the lock is a READ or WRITE lock.
      See Also:
    • WRITE

      public static final int WRITE
      See Also:
  • Method Details