Contents
Class Synchronized
java.lang.Object
ecmwf.common.technical.Synchronized
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Free the object related to the given key.static Synchronized
getInstance
(Class<?> clazz) Gets the single instance of Synchronized.Gets the Mutex for the specified key.static long
getSize()
Gets the total number of elements for all instances.Retrieve an object to synchronize for the given key.
-
Constructor Details
-
Method Details
-
getInstance
Gets the single instance of Synchronized.- Parameters:
clazz
- the clazz- Returns:
- single instance of Synchronized
-
getSize
public static long getSize()Gets the total number of elements for all instances.- Returns:
- total number of elements for all instances
-
getMutex
-
lock
-
free
Free the object related to the given key.- Parameters:
key
- the key- Returns:
- true, if successful
-