HierarchicalTestExecutorService.TestTask#getResourceLock()
| Modifier and Type | Method and Description |
|---|---|
| public ResourceLock | Returns: this lock so it can easily be used in a try-with-resources statement.Acquire this resource lock, potentially blocking. |
| public default void | close()
Implements java. Closes this resource, relinquishing any underlying resources. |
| public List | Returns: the exclusive resources this lock representsReturns the exclusive resources this lock represents. |
| public default boolean | Returns: whether the given lock is compatible with this lockthe other lock to check for compatibility other)Returns whether the given lock is compatible with this lock. |
| public boolean | Returns: whether this lock requires exclusivenessReturns whether this lock requires exclusiveness. |
| public void |
| acquire | back to summary |
|---|---|
| public ResourceLock acquire() throws InterruptedException Acquire this resource lock, potentially blocking.
| |
| close | back to summary |
|---|---|
| public default void close() Implements java. Doc from java. Closes this resource, relinquishing any underlying resources.
This method is invoked automatically on objects managed by the
| |
| getResources | back to summary |
|---|---|
| public List Returns the exclusive resources this lock represents.
| |
| isCompatible | back to summary |
|---|---|
| public default boolean isCompatible(ResourceLock other) Returns whether the given lock is compatible with this lock.
| |
| isExclusive | back to summary |
|---|---|
| public boolean isExclusive() Returns whether this lock requires exclusiveness.
| |
| release | back to summary |
|---|---|
| public void release() Release this resource lock. | |