Namespace: locks

diffusion. locks

Provide access to SessionLockScope

Example

// Get a reference to the security feature
var locks = diffusion.locks;

Members


<readonly> SessionLockScope

Enum containing scope parameter of Session#lock

Properties:
Name Type Default Description
UNLOCK_ON_SESSION_LOSS 0

The lock will be released when the acquiring session is closed.

UNLOCK_ON_CONNECTION_LOSS 1

The lock will be released when the acquiring session loses its current connection to the server.

Since:
  • 6.2
Example
// Get the ALL_FIXED_PROPERTIES key
var scope = diffusion.locks.SessionLockScope.UNLOCK_ON_SESSION_LOSS;