Package org.testng.internal
Class KeyAwareAutoCloseableLock
java.lang.Object
org.testng.internal.KeyAwareAutoCloseableLock
A simple abstraction over
ReentrantLock
that can be used when
we need to be dealing with a dictionary of lockable objects wherein we traditionally would have
used the synchronized
keyword.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
KeyAwareAutoCloseableLock
public KeyAwareAutoCloseableLock()
-
-
Method Details
-
lockForObject
-