Module org.junit.jupiter.engine
Class TimeoutInvocationFactory.ExecutorResource
java.lang.Object
org.junit.jupiter.engine.extension.TimeoutInvocationFactory.ExecutorResource
- All Implemented Interfaces:
ExtensionContext.Store.CloseableResource
- Direct Known Subclasses:
TimeoutInvocationFactory.SingleThreadExecutorResource
- Enclosing class:
TimeoutInvocationFactory
private abstract static class TimeoutInvocationFactory.ExecutorResource
extends Object
implements ExtensionContext.Store.CloseableResource
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close underlying resources.(package private) ScheduledExecutorServiceget()
-
Field Details
-
executor
-
-
Constructor Details
-
ExecutorResource
ExecutorResource(ScheduledExecutorService executor)
-
-
Method Details
-
get
ScheduledExecutorService get() -
close
Description copied from interface:ExtensionContext.Store.CloseableResourceClose underlying resources.- Specified by:
closein interfaceExtensionContext.Store.CloseableResource- Throws:
Throwable- any throwable will be caught and rethrown
-