Class TimeoutExtension.ExecutorResource
- java.lang.Object
-
- org.junit.jupiter.engine.extension.TimeoutExtension.ExecutorResource
-
- All Implemented Interfaces:
ExtensionContext.Store.CloseableResource
- Enclosing class:
- TimeoutExtension
private static class TimeoutExtension.ExecutorResource extends java.lang.Object implements ExtensionContext.Store.CloseableResource
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.concurrent.ScheduledExecutorService
executor
-
Constructor Summary
Constructors Constructor Description ExecutorResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Close underlying resources.(package private) java.util.concurrent.ScheduledExecutorService
get()
-
-
-
Method Detail
-
get
java.util.concurrent.ScheduledExecutorService get()
-
close
public void close() throws java.lang.Throwable
Description copied from interface:ExtensionContext.Store.CloseableResource
Close underlying resources.- Specified by:
close
in interfaceExtensionContext.Store.CloseableResource
- Throws:
java.lang.Throwable
- any throwable will be caught and rethrown
-
-