Class LockFactory

    • Constructor Summary

      Constructors 
      Constructor Description
      LockFactory()  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract Lock obtainLock​(Directory dir, java.lang.String lockName)
      Return a new obtained Lock instance identified by lockName.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LockFactory

        public LockFactory()
    • Method Detail

      • obtainLock

        public abstract Lock obtainLock​(Directory dir,
                                        java.lang.String lockName)
                                 throws java.io.IOException
        Return a new obtained Lock instance identified by lockName.
        Parameters:
        lockName - name of the lock to be created.
        Throws:
        LockObtainFailedException - (optional specific exception) if the lock could not be obtained because it is currently held elsewhere.
        java.io.IOException - if any i/o error occurs attempting to gain the lock