private abstract static class TimeoutInvocationFactory.ExecutorResource extends java.lang.Object implements ExtensionContext.Store.CloseableResource
| Modifier and Type | Field and Description |
|---|---|
protected java.util.concurrent.ScheduledExecutorService |
executor |
| Constructor and Description |
|---|
ExecutorResource(java.util.concurrent.ScheduledExecutorService executor) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close underlying resources.
|
(package private) java.util.concurrent.ScheduledExecutorService |
get() |
ExecutorResource(java.util.concurrent.ScheduledExecutorService executor)
java.util.concurrent.ScheduledExecutorService get()
public void close()
throws java.lang.Throwable
ExtensionContext.Store.CloseableResourceclose in interface ExtensionContext.Store.CloseableResourcejava.lang.Throwable - any throwable will be caught and rethrown