Class Mutex
java.lang.Object
ecmwf.common.technical.Mutex
ECMWF Product Data Store (OpenECPDS) Project
The Mutex class represents a mutual exclusion lock for a specific key. It has a reference to a Synchronized object,
which is used to manage locks on a per-key basis. The lock() method of the Mutex object acquires the lock for the
associated key by calling the lock() method of the underlying Synchronized object. The free() method of the Mutex
object releases the lock for the associated key by calling the free() method of the underlying Synchronized object.
This class provides a way to synchronize access to a shared resource on a per-key basis, which can help prevent data
corruption and other synchronization-related problems. *
- Since:
- 2024-07-01
- Version:
- 6.7.7
- Author:
- Laurent Gougeon - syi@ecmwf.int, ECMWF.
-
Method Summary
-
Method Details
-
lock
-
free
public boolean free()Free.- Returns:
- true, if successful
-