As well as duration and type, locks have a kind. Normally, the kind is zero (0), but can have a different value when stable objects are being used. JADE sessions have no direct control of the lock kind. It is of interest only when analyzing current locks.
The possible values are listed in the following table.
Kind | Description |
---|---|
LockKind.Normal | Normal lock |
LockKind.Local | Local lock – a shared lock on a stable JADE object for a specific JADE session |
LockKind.Node | Node lock – a shared lock on a stable JADE object, recorded for a client node rather than a specific JADE session |
For more details, see “Stable Objects” and “Object Volatility”, later in this chapter.