Class FileRetryOnInterrupt.FileLockRetry

  • All Implemented Interfaces:
    java.lang.AutoCloseable
    Enclosing class:
    FileRetryOnInterrupt

    static class FileRetryOnInterrupt.FileLockRetry
    extends java.nio.channels.FileLock
    A wrapped file lock.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.nio.channels.FileLock base
      The base lock.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected FileLockRetry​(java.nio.channels.FileLock base, java.nio.channels.FileChannel channel)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isValid()  
      void release()  
      • Methods inherited from class java.nio.channels.FileLock

        acquiredBy, channel, close, isShared, overlaps, position, size, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • base

        java.nio.channels.FileLock base
        The base lock.
    • Constructor Detail

      • FileLockRetry

        protected FileLockRetry​(java.nio.channels.FileLock base,
                                java.nio.channels.FileChannel channel)
    • Method Detail

      • isValid

        public boolean isValid()
        Specified by:
        isValid in class java.nio.channels.FileLock
      • release

        public void release()
                     throws java.io.IOException
        Specified by:
        release in class java.nio.channels.FileLock
        Throws:
        java.io.IOException