Class Synchronized
java.lang.Object
ecmwf.common.technical.Synchronized
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanFree the object related to the given key.static SynchronizedgetInstance(Class<?> clazz) Gets the single instance of Synchronized.Gets the Mutex for the specified key.static longgetSize()Gets the total number of elements for all instances.Retrieve an object to synchronize for the given key.
-
Constructor Details
-
Synchronized
public Synchronized()
-
-
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
-