Class LockFactory

    • Constructor Detail

      • LockFactory

        public LockFactory()
    • Method Detail

      • obtainLock

        public abstract Lock obtainLock​(Directory dir,
                                        String lockName)
                                 throws 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.
        IOException - if any i/o error occurs attempting to gain the lock