Class SameThreadTimeoutInvocation<T>
- java.lang.Object
-
- org.junit.jupiter.engine.extension.SameThreadTimeoutInvocation<T>
-
- All Implemented Interfaces:
org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<T>
class SameThreadTimeoutInvocation<T> extends java.lang.Object implements org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<T>- Since:
- 5.5
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classSameThreadTimeoutInvocation.InterruptTask
-
Field Summary
Fields Modifier and Type Field Description private org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<T>delegateprivate java.util.function.Supplier<java.lang.String>descriptionSupplierprivate java.util.concurrent.ScheduledExecutorServiceexecutorprivate PreInterruptCallbackInvocationpreInterruptCallbackprivate TimeoutDurationtimeout
-
Constructor Summary
Constructors Constructor Description SameThreadTimeoutInvocation(org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<T> delegate, TimeoutDuration timeout, java.util.concurrent.ScheduledExecutorService executor, java.util.function.Supplier<java.lang.String> descriptionSupplier, PreInterruptCallbackInvocation preInterruptCallback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tproceed()
-
-
-
Field Detail
-
delegate
private final org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<T> delegate
-
timeout
private final TimeoutDuration timeout
-
executor
private final java.util.concurrent.ScheduledExecutorService executor
-
descriptionSupplier
private final java.util.function.Supplier<java.lang.String> descriptionSupplier
-
preInterruptCallback
private final PreInterruptCallbackInvocation preInterruptCallback
-
-
Constructor Detail
-
SameThreadTimeoutInvocation
SameThreadTimeoutInvocation(org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<T> delegate, TimeoutDuration timeout, java.util.concurrent.ScheduledExecutorService executor, java.util.function.Supplier<java.lang.String> descriptionSupplier, PreInterruptCallbackInvocation preInterruptCallback)
-
-