Package generic.util

Class FileLocker

  • Direct Known Subclasses:
    ChannelLocker

    public class FileLocker
    extends java.lang.Object
    • Field Detail

      • lockFile

        protected final java.io.File lockFile
      • existingLockProperties

        protected final java.util.Properties existingLockProperties
      • createdLockProperties

        protected java.util.Properties createdLockProperties
      • existingLockType

        protected final java.lang.String existingLockType
      • isLocked

        protected boolean isLocked
    • Constructor Detail

      • FileLocker

        protected FileLocker​(java.io.File lockFile)
    • Method Detail

      • lock

        public boolean lock()
      • isLocked

        public boolean isLocked()
      • release

        public void release()
      • canForceLock

        public boolean canForceLock()
      • forceLock

        public boolean forceLock()
      • getExistingLockFileInformation

        public java.lang.String getExistingLockFileInformation()
      • getLockType

        protected java.lang.String getLockType()
      • createLockFile

        protected boolean createLockFile()
      • toString

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