Class LockRequest


  • public class LockRequest
    extends java.lang.Object
    The LockRequest class bundles information necessary to request a lock on a ManagedObject for update or value access.
    Since:
    2.4.0
    Author:
    Frank Fock
    • Constructor Detail

      • LockRequest

        public LockRequest​(java.lang.Object lockOwner,
                           long timeoutMillis)
        Creates a new lock request with owner and timeout.
        Parameters:
        lockOwner - the owner of the lock. The same owner may lock a managed object again (recursively), see MOServer.lock(Object, ManagedObject) for details.
        timeoutMillis - the number of 1/1000 seconds to wait for the lock. 0 or less disables the timeout and waits forever until the lock is released by the current owner.
    • Method Detail

      • getLockOwner

        public java.lang.Object getLockOwner()
      • getTimeoutMillis

        public long getTimeoutMillis()