public final class ComplexCancellable extends Object implements CancellableDependency
Cancellable that has a dependency on another Cancellable
process or operation. Dependent process or operation will get cancelled
if this Cancellable itself is cancelled.| Constructor and Description |
|---|
ComplexCancellable() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel()
Cancels the ongoing operation or process.
|
boolean |
isCancelled()
Determines whether the process or operation has been cancelled.
|
void |
setDependency(Cancellable dependency)
Sets
Cancellable dependency on another ongoing process or
operation represented by Cancellable. |
public boolean isCancelled()
CancellableDependencyisCancelled in interface CancellableDependencypublic void setDependency(Cancellable dependency)
CancellableDependencyCancellable dependency on another ongoing process or
operation represented by Cancellable.setDependency in interface CancellableDependencydependency - another ongoing process or operation.public boolean cancel()
Cancellablecancel in interface Cancellabletrue if the operation or process has been cancelled as a result of
this method call or false if it has already been cancelled or not started.Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.