Package com.mapr.baseutils.utils
Class HashMapStringLocks
java.lang.Object
com.mapr.baseutils.utils.HashMapStringLocks
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
LOG
public static final org.slf4j.Logger LOG
-
-
Constructor Details
-
HashMapStringLocks
public HashMapStringLocks()
-
-
Method Details
-
lock
-
tryLock
Attempts to obtain the lock of the object corresponding to the argument. Returns 'true' if the lock could be taken or 'false' otherwise- Parameters:
key-- Returns:
- 'true' if the lock could be taken or 'false' otherwise
-
unlock
-