public class CancelFlag extends Object
Pass it to RelOptPlanner by putting it into a Context.
| Modifier and Type | Field and Description |
|---|---|
AtomicBoolean |
atomicBoolean
The flag that holds the cancel state.
|
| Constructor and Description |
|---|
CancelFlag(AtomicBoolean atomicBoolean) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearCancel()
Clears any pending cancellation request.
|
boolean |
isCancelRequested()
Returns whether a cancellation has been requested.
|
void |
requestCancel()
Requests a cancellation.
|
public final AtomicBoolean atomicBoolean
public CancelFlag(AtomicBoolean atomicBoolean)
Copyright © 2012-2022 Apache Software Foundation. All Rights Reserved.