public final class LockHandle
extends java.lang.Object
Constructor | Description |
---|---|
LockHandle() |
Default constructor
|
LockHandle(LockHandle lockHandle) |
Create a new LockHandle populates attributes from specified lockhandle.
|
LockHandle(java.lang.String lockId,
java.util.Date lockDate) |
Create a new LockHandle
|
Modifier and Type | Method | Description |
---|---|---|
java.util.Date |
getLockDate() |
Gets the lock date.
|
java.lang.String |
getLockId() |
Get lock id
|
void |
setLockDate(java.util.Date lockDate) |
Sets lock date.
|
void |
setLockId(java.lang.String lockId) |
Sets the lock id.
|
public LockHandle()
public LockHandle(java.lang.String lockId, java.util.Date lockDate)
lockId
- Unique lock id for lock handle.lockDate
- The time when lock was acquired.public LockHandle(LockHandle lockHandle)
lockHandle
- The lockhandle instance.public java.lang.String getLockId()
public void setLockId(java.lang.String lockId)
lockId
- New lock id.public java.util.Date getLockDate()
public void setLockDate(java.util.Date lockDate)
lockDate
- New lock date.