Class CompositeLock
java.lang.Object
org.junit.platform.engine.support.hierarchical.CompositeLock
- All Implemented Interfaces:
AutoCloseable
,ResourceLock
- Since:
- 1.3
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.junit.platform.engine.support.hierarchical.ResourceLock
close
-
Field Details
-
locks
-
-
Constructor Details
-
CompositeLock
-
-
Method Details
-
getLocks
-
acquire
Description copied from interface:ResourceLock
Acquire this resource lock, potentially blocking.- Specified by:
acquire
in interfaceResourceLock
- Returns:
- this lock so it can easily be used in a try-with-resources statement.
- Throws:
InterruptedException
- if the calling thread is interrupted while waiting to acquire this lock
-
acquireAllLocks
- Throws:
InterruptedException
-
release
public void release()Description copied from interface:ResourceLock
Release this resource lock.- Specified by:
release
in interfaceResourceLock
-
release
-