AutoCloseable
@API(status=EXPERIMENTAL, since="1.3") public interface ResourceLock extends AutoCloseable
HierarchicalTestExecutorService.TestTask.getResourceLock()
Modifier and Type | Method | Description |
---|---|---|
ResourceLock |
acquire() |
Acquire this resource lock, potentially blocking.
|
default void |
close() |
|
void |
release() |
Release this resource lock.
|
ResourceLock acquire() throws InterruptedException
InterruptedException
- if the calling thread is interrupted
while waiting to acquire this lockvoid release()
default void close()
close
in interface AutoCloseable
Copyright © 2019. All rights reserved.