Package generic.util

Class FileLocker

java.lang.Object
generic.util.FileLocker
Direct Known Subclasses:
ChannelLocker

public class FileLocker extends Object
  • Field Details

    • lockFile

      protected final File lockFile
    • existingLockProperties

      protected final Properties existingLockProperties
    • createdLockProperties

      protected Properties createdLockProperties
    • existingLockType

      protected final String existingLockType
    • isLocked

      protected boolean isLocked
  • Constructor Details

    • FileLocker

      protected FileLocker(File lockFile)
  • Method Details

    • lock

      public boolean lock()
    • isLocked

      public boolean isLocked()
    • release

      public void release()
    • canForceLock

      public boolean canForceLock()
    • forceLock

      public boolean forceLock()
    • getExistingLockFileInformation

      public String getExistingLockFileInformation()
    • getLockType

      protected String getLockType()
    • createLockFile

      protected boolean createLockFile()
    • toString

      public String toString()
      Overrides:
      toString in class Object