Package hec.io
Class FileLock
java.lang.Object
hec.io.FileLock
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final String
static final int
static final String
static final int
static final String
static final int
static final String
static final int
static final int
static final String
static final String
static final int
static final String
static final int
static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
boolean
long
int
static String
getLockTypeString
(int lockType) int
static FileLock
getUnlockForLock
(FileLock fLock) return the FileLock to unlock the specified FileLockint
hashCode()
int
static boolean
isUnlockType
(int lockType) void
setLockedTime
(long lockedTime) toString()
-
Field Details
-
NO_LOCK
public static final int NO_LOCK- See Also:
-
UNLOCK
public static final int UNLOCK- See Also:
-
UNLOCK_ALL
public static final int UNLOCK_ALL- See Also:
-
READ_LOCK
public static final int READ_LOCK- See Also:
-
WRITE_LOCK
public static final int WRITE_LOCK- See Also:
-
WRITE_UNLOCK
public static final int WRITE_UNLOCK- See Also:
-
EDIT_LOCK
public static final int EDIT_LOCK- See Also:
-
EDIT_UNLOCK
public static final int EDIT_UNLOCK- See Also:
-
NO_LOCK_STRING
- See Also:
-
UNLOCK_STRING
- See Also:
-
UNLOCK_ALL_STRING
- See Also:
-
READ_LOCK_STRING
- See Also:
-
WRITE_LOCK_STRING
- See Also:
-
WRITE_UNLOCK_STRING
- See Also:
-
EDIT_LOCK_STRING
- See Also:
-
EDIT_UNLOCK_STRING
- See Also:
-
-
Constructor Details
-
FileLock
create a new FileLock with the specified userId and Locktype.
-
-
Method Details
-
getLockType
public int getLockType() -
getUserId
-
getLockedTime
public long getLockedTime() -
setLockedTime
public void setLockedTime(long lockedTime) -
toString
-
hashCode
public int hashCode() -
equals
-
equals
-
getRefCount
public int getRefCount() -
incrementRefCount
public int incrementRefCount() -
decrementRefCount
public int decrementRefCount() -
getLockTypeString
-
getLockTypeString
-
getUnlockForLock
return the FileLock to unlock the specified FileLock -
isUnlockType
public static boolean isUnlockType(int lockType)
-