Interface LockHandler

  • All Known Implementing Classes:
    LockHandlerImpl

    public interface LockHandler
    Contains methods to access pessimistic locks on entities
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void lock​(LockKey key)
      Locks the given id on the given lock type.
      void lock​(LockKey key, long timeInMillis)
      Waits the given time to acquire the locks the given id on the given lock type
      boolean tryLock​(LockKey key)
      Locks the given id on the given lock type only if it is free at the time of invocation.