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

pack-priv Class TimeoutInvocationFactory

extends Object
Class Inheritance
Imports
java.util.concurrent.Executors, .ScheduledExecutorService, .TimeUnit, java.util.function.Supplier, org.junit.jupiter.api.Timeout.ThreadMode, org.junit.jupiter.api.extension.ExtensionContext.Store, .InvocationInterceptor.Invocation, org.junit.platform.commons.JUnitException, org.junit.platform.commons.util.Preconditions

Since
5.9

Nested and Inner Type Summary

Modifier and TypeClass and Description
private abstract static class
TimeoutInvocationFactory.ExecutorResource

References Deprecated ExtensionContext.Store.CloseableResource is deprecated or references (maybe indirectly) at least one deprecated element.
pack-priv static class
TimeoutInvocationFactory.SingleThreadExecutorResource

References Deprecated TimeoutInvocationFactory.ExecutorResource is deprecated or references (maybe indirectly) at least one deprecated element.
pack-priv static class

Field Summary

Modifier and TypeField and Description
private final ExtensionContext.Store

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv <T> InvocationInterceptor.Invocation<T>
private ScheduledExecutorService
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

storeback to summary
private final ExtensionContext.Store store

Constructor Detail

TimeoutInvocationFactoryback to summary
pack-priv TimeoutInvocationFactory(ExtensionContext.Store store)

Method Detail

createback to summary
pack-priv <T> InvocationInterceptor.Invocation<T> create(Timeout.ThreadMode threadMode, TimeoutInvocationFactory.TimeoutInvocationParameters<T> timeoutInvocationParameters)
getThreadExecutorForSameThreadInvocationback to summary
private ScheduledExecutorService getThreadExecutorForSameThreadInvocation()
org.junit.jupiter.engine.extension back to summary

private abstract Class TimeoutInvocationFactory.ExecutorResource

extends Object
implements CloseableResource, AutoCloseable
Class Inheritance
  • java.lang.Object
  • org.junit.jupiter.engine.extension.TimeoutInvocationFactory.ExecutorResource
All Implemented Interfaces
java.lang.AutoCloseable, org.junit.jupiter.api.extension.ExtensionContext.Store.CloseableResource
Known Direct Subclasses
org.junit.jupiter.engine.extension.TimeoutInvocationFactory.SingleThreadExecutorResource
Annotations
@SuppressWarnings:deprecation, try

References Deprecated

ExtensionContext.Store.CloseableResource is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Field Summary

Modifier and TypeField and Description
private final ScheduledExecutorService

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
pack-priv ScheduledExecutorService
get()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

executorback to summary
private final ScheduledExecutorService executor

Constructor Detail

ExecutorResourceback to summary
pack-priv ExecutorResource(ScheduledExecutorService executor)

Method Detail

closeback to summary
public void close() throws Exception

Implements org.junit.jupiter.api.extension.ExtensionContext.Store.CloseableResource.close, java.lang.AutoCloseable.close.

Doc from org.junit.jupiter.api.extension.ExtensionContext.Store.CloseableResource.close.

Close underlying resources.

Annotations
@Override
Exceptions
Exception:

Doc from java.lang.AutoCloseable.close.

if this resource cannot be closed

getback to summary
pack-priv ScheduledExecutorService get()
org.junit.jupiter.engine.extension back to summary

pack-priv Class TimeoutInvocationFactory.SingleThreadExecutorResource

extends ExecutorResource
Class Inheritance
Annotations
@SuppressWarnings:try

References Deprecated

TimeoutInvocationFactory.ExecutorResource is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Inherited from org.junit.jupiter.engine.extension.TimeoutInvocationFactory.ExecutorResource:
closeget

Constructor Detail

SingleThreadExecutorResourceback to summary
pack-priv SingleThreadExecutorResource()
Annotations
@SuppressWarnings:unused, ThreadPriorityCheck
org.junit.jupiter.engine.extension back to summary

pack-priv Class TimeoutInvocationFactory.TimeoutInvocationParameters<T>

extends Object
Class Inheritance
  • java.lang.Object
  • org.junit.jupiter.engine.extension.TimeoutInvocationFactory.TimeoutInvocationParameters

Field Summary

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

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Supplier<String>
public InvocationInterceptor.Invocation<T>
public PreInterruptCallbackInvocation
public TimeoutDuration
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

descriptionSupplierback to summary
private final Supplier<String> descriptionSupplier
invocationback to summary
private final InvocationInterceptor.Invocation<T> invocation
preInterruptCallbackback to summary
private final PreInterruptCallbackInvocation preInterruptCallback
timeoutback to summary
private final TimeoutDuration timeout

Constructor Detail

TimeoutInvocationParametersback to summary
pack-priv TimeoutInvocationParameters(InvocationInterceptor.Invocation<T> invocation, TimeoutDuration timeout, Supplier<String> descriptionSupplier, PreInterruptCallbackInvocation preInterruptCallback)

Method Detail

getDescriptionSupplierback to summary
public Supplier<String> getDescriptionSupplier()
getInvocationback to summary
public InvocationInterceptor.Invocation<T> getInvocation()
getPreInterruptCallbackback to summary
public PreInterruptCallbackInvocation getPreInterruptCallback()
getTimeoutDurationback to summary
public TimeoutDuration getTimeoutDuration()