Lock

This package provides a set of interfaces and classes used to create several types of locks.

Interfaces

ILock

Interface for locks to synchronize work or parallel processes and to prevent collisions. The lock allows to manage multiple locks identified by unique keys.


Classes

DefaultLockFactory

Creates a factory used to create ILock components based on their descriptors

Lock

Abstract lock that implements default lock acquisition routine.

MemoryLock

Lock that is used to synchronize execution within one process using shared memory. This implementation is not suitable for synchronization of distributed processes.

NullLock

Dummy lock implementation that doesn’t do anything.

It can be used in testing or in situations when lock is required but shall be disabled.