Lock
Lock an entity
Lockable
lockDiscussThisForum(
beeId
entity
,
lockType
lock_type
,
lockUpdater
lockUpdater
,
updateMode
snapshotid
,
Projection
projection
)
Parameters
- entity
-
Type:
beeId
The user request lockable entity to lock.
- lock_type
-
Type:
lockType
The type of lock to acquire.
- lockUpdater
-
Type:
lockUpdater
Updater used to specify post-creation updates to the lock. This parameter is optional.
- snapshotid
-
Type:
updateMode
Can be used to check for optimistic locking on the Lockable entity.
- projection
-
ProjectionWrapper
Projection specifying the attributes to load in the returned Lockable. Whenever Projection.BASIC or higher is passed in,
the Lock snapshots for the getLocks() attribute of the Lockable will be loaded with Projection.BASIC,
such that the caller can tell the ID of the newly-acquired lock based on its lock type.