Package arcommon

Class FileUtil.LockFile

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

    public static class FileUtil.LockFile
    extends java.lang.Object
    implements java.lang.AutoCloseable
    • Constructor Summary

      Constructors 
      Constructor Description
      LockFile​(java.lang.String plockFileName, java.io.FileOutputStream pfileOutputStream, java.nio.channels.FileChannel pchannel, java.nio.channels.FileLock plock)  
    • Constructor Detail

      • LockFile

        public LockFile​(java.lang.String plockFileName,
                        java.io.FileOutputStream pfileOutputStream,
                        java.nio.channels.FileChannel pchannel,
                        java.nio.channels.FileLock plock)
    • Method Detail

      • isValid

        public boolean isValid()
      • close

        public void close()
                   throws java.lang.Exception
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.lang.Exception
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object