Class Locking.ServerLock

  • Enclosing class:
    Locking

    protected class Locking.ServerLock
    extends java.lang.Object
    Server side queue for handling of lock requests (lock, release).
    Author:
    Bela Ban
    • Constructor Detail

      • ServerLock

        public ServerLock​(java.lang.String lock_name)
      • ServerLock

        protected ServerLock​(java.lang.String lock_name,
                             Owner owner)
    • Method Detail

      • isRequestPresent

        protected boolean isRequestPresent​(Locking.Type type,
                                           Owner owner)
        Checks if a certain request from a given owner is already in the queue
      • setOwner

        protected void setOwner​(Owner owner)
      • isEmpty

        public boolean isEmpty()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object