Package hec.lang

Interface LockableObject

All Superinterfaces:
Modifiable

public interface LockableObject extends Modifiable
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    see if this object has it's lock.
    boolean
    setLocked(int lockType)
    lock or unlock this object

    Methods inherited from interface rma.lang.Modifiable

    isModified, setModified
  • Method Details

    • setLocked

      boolean setLocked(int lockType)
      lock or unlock this object
      Parameters:
      lockType - = FileLock.NO_LOCK (to unlock), FileLock.READ_LOCK or FileLock.WRITE_LOCK
      See Also:
    • hasLock

      int hasLock()
      see if this object has it's lock.
      Returns:
      FileLock.NO_LOCK, FileLock.READ_LOCK, FileLock.WRITE_LOCK