public class EmptyCompletionHandler<E> extends Object implements CompletionHandler<E>
CompletionHandler
interface.Constructor and Description |
---|
EmptyCompletionHandler() |
Modifier and Type | Method and Description |
---|---|
void |
cancelled()
The operation was cancelled.
|
void |
completed(E result)
The operation was completed.
|
void |
failed(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()
cancelled
in interface CompletionHandler<E>
public void failed(Throwable throwable)
failed
in interface CompletionHandler<E>
throwable
- error, which occurred during operation executionpublic void completed(E result)
completed
in interface CompletionHandler<E>
result
- the operation resultpublic void updated(E result)
updated
in interface CompletionHandler<E>
result
- the current resultCopyright © 2014 Oracle Corporation. All rights reserved.