public final class DefaultCancellation extends Object implements Cancellation
Cancellation| Constructor and Description | 
|---|
DefaultCancellation()  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
getCancel()
When set to  
true attempts to cancel a long running operation. | 
void | 
setCancel(boolean value)
When set to  
true attempts to cancel a long running operation. | 
public boolean getCancel()
true attempts to cancel a long running operation.
 
  The value must be set by a thread other than the thread running the operation to be cancelled.getCancel in interface Cancellationpublic void setCancel(boolean value)
true attempts to cancel a long running operation.
 
  The value must be set by a thread other than the thread running the operation to be cancelled.setCancel in interface CancellationCopyright © 2021. All rights reserved.