Top Inners Fields Constructors Methods
org.junit.jupiter.engine.extension

pack-priv Class SameThreadTimeoutInvocation<T extends @Nullable Object>

extends Object
implements InvocationInterceptor.Invocation<T extends @Nullable Object>
Class Inheritance
All Implemented Interfaces
org.junit.jupiter.api.extension.InvocationInterceptor.Invocation
Imports
java.util.List, java.util.concurrent.CopyOnWriteArrayList, .ScheduledExecutorService, .ScheduledFuture, java.util.function.Supplier, org.jspecify.annotations.Nullable, org.junit.jupiter.api.extension.InvocationInterceptor.Invocation, org.junit.platform.commons.util.UnrecoverableExceptions

Since
5.5

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
private final InvocationInterceptor.Invocation<T>
private final Supplier<String>
private final ScheduledExecutorService
private final PreInterruptCallbackInvocation
private final TimeoutDuration

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public T
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

delegateback to summary
private final InvocationInterceptor.Invocation<T> delegate
descriptionSupplierback to summary
private final Supplier<String> descriptionSupplier
executorback to summary
private final ScheduledExecutorService executor
preInterruptCallbackback to summary
private final PreInterruptCallbackInvocation preInterruptCallback
timeoutback to summary
private final TimeoutDuration timeout

Constructor Detail

SameThreadTimeoutInvocationback to summary
pack-priv SameThreadTimeoutInvocation(InvocationInterceptor.Invocation<T> delegate, TimeoutDuration timeout, ScheduledExecutorService executor, Supplier<String> descriptionSupplier, PreInterruptCallbackInvocation preInterruptCallback)

Method Detail

proceedback to summary
public T proceed() throws Throwable

Implements org.junit.jupiter.api.extension.InvocationInterceptor.Invocation.proceed.

Doc from org.junit.jupiter.api.extension.InvocationInterceptor.Invocation.proceed.

Proceed with this invocation.

Annotations
@SuppressWarnings:NullAway
@Override
Exceptions
Throwable:
in case the invocation failed
org.junit.jupiter.engine.extension back to summary

pack-priv Class SameThreadTimeoutInvocation.InterruptTask

extends Object
implements Runnable
Class Inheritance
  • java.lang.Object
  • org.junit.jupiter.engine.extension.SameThreadTimeoutInvocation.InterruptTask
All Implemented Interfaces
java.lang.Runnable

Field Summary

Modifier and TypeField and Description
private final List<Throwable>
private volatile boolean
private final PreInterruptCallbackInvocation
private final Thread

Constructor Summary

AccessConstructor and Description
pack-priv
InterruptTask(Thread thread, PreInterruptCallbackInvocation preInterruptCallback)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
public void
run()

Implements java.lang.Runnable.run.

Runs this operation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

exceptionsDuringInterruptionback to summary
private final List<Throwable> exceptionsDuringInterruption
executedback to summary
private volatile boolean executed
preInterruptCallbackback to summary
private final PreInterruptCallbackInvocation preInterruptCallback
threadback to summary
private final Thread thread

Constructor Detail

InterruptTaskback to summary
pack-priv InterruptTask(Thread thread, PreInterruptCallbackInvocation preInterruptCallback)

Method Detail

attachSuppressedExceptionsback to summary
pack-priv void attachSuppressedExceptions(Throwable outerException)
runback to summary
public void run()

Implements java.lang.Runnable.run.

Doc from java.lang.Runnable.run.

Runs this operation.

Annotations
@Override