E
- result type.public abstract class CompletionHandler<E>
extends java.lang.Object
Constructor and Description |
---|
CompletionHandler() |
Modifier and Type | Method and Description |
---|---|
void |
cancelled()
The operation was cancelled.
|
void |
completed(E result)
The operation was completed.
|
void |
failed(java.lang.Throwable throwable)
The operation was failed.
|
void |
updated(E result)
The callback method may be called, when there is some progress in
operation execution, but it is still not completed.
|
public void cancelled()
public void failed(java.lang.Throwable throwable)
throwable
- error, which occurred during operation execution.public void completed(E result)
result
- the operation result.public void updated(E result)
result
- the current result.Copyright © 2012–2020 Oracle Corporation. All rights reserved.