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.| 构造器和说明 |
|---|
ComplexCancellable() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 CancellableDependencypublic void setDependency(Cancellable dependency)
CancellableDependencyCancellable dependency on another ongoing process or
operation represented by Cancellable.setDependency 在接口中 CancellableDependencypublic boolean cancel()
Cancellablecancel 在接口中 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 © 2023. All rights reserved.