LockHandle

LockHandle

An instance of this class is used to lock and unlock the cache items in pessimistic concurrency model.


Constructor

# new LockHandle(lockId, lockDate, lockHandle)

Create a new LockHandle

Parameters:
Name Type Default Description
lockId String null
lockDate Date null

lockDate

lockHandle LockHandle null

lockHandle

Methods

# getLockDate() → {Date}

Get lock date

Returns:

Lock date

Type
Date

# getLockId() → {String}

Get lock id

Returns:

Lock string id

Type
String

# setLockDate(lockDate)

Set lock date

Parameters:
Name Type Description
lockDate Date

New lock date

# setLockId(lockId)

Set lock id

Parameters:
Name Type Description
lockId string

New lock string id