Top Fields Constructors Methods
org.junit.platform.engine

pack-priv final Class RegularCancellationToken

extends Object
implements CancellationToken
Class Inheritance
All Implemented Interfaces
org.junit.platform.engine.CancellationToken
Imports
java.util.concurrent.atomic.AtomicBoolean

Since
6.0

Field Summary

Modifier and TypeField and Description
private final AtomicBoolean

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
public boolean
isCancellationRequested()

Implements org.junit.platform.engine.CancellationToken.isCancellationRequested.

Returns whether cancellation has been requested.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cancelledback to summary
private final AtomicBoolean cancelled

Constructor Detail

RegularCancellationTokenback to summary
pack-priv RegularCancellationToken()

Method Detail

cancelback to summary
public void cancel()

Implements org.junit.platform.engine.CancellationToken.cancel.

Doc from org.junit.platform.engine.CancellationToken.cancel.

Request cancellation.

This will call subsequent calls to isCancellationRequested() to return true.

Annotations
@Override
isCancellationRequestedback to summary
public boolean isCancellationRequested()

Implements org.junit.platform.engine.CancellationToken.isCancellationRequested.

Doc from org.junit.platform.engine.CancellationToken.isCancellationRequested.

Returns whether cancellation has been requested.

Once this method returns true, it will never return false in a subsequent call.

Annotations
@Override