Class CancellationToken
public class CancellationToken
extends Object
Token that propagates notification that an operation should be cancelled.
This class is thread safe.
-
Constructor Summary
Constructors
-
Method Summary
boolean
Gets whether cancellation has been requested for this token.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
CancellationToken
public CancellationToken()
-
Method Details
-
isCancellationRequested
public boolean isCancellationRequested()
Gets whether cancellation has been requested for this token.
- Returns:
- Cancellation status.