public class CompletionListenerFuture extends Object implements CompletionListener, Future<Void>
| Constructor and Description |
|---|
CompletionListenerFuture() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean b) |
Void |
get() |
Void |
get(long timeout,
TimeUnit unit) |
boolean |
isCancelled() |
boolean |
isDone() |
void |
onCompletion() |
void |
onException(Exception e) |
public void onCompletion()
throws IllegalStateException
onCompletion in interface CompletionListenerIllegalStateExceptionpublic void onException(Exception e) throws IllegalStateException
onException in interface CompletionListenerIllegalStateExceptionpublic boolean isCancelled()
isCancelled in interface Future<Void>public Void get() throws InterruptedException, ExecutionException
get in interface Future<Void>InterruptedExceptionExecutionExceptionpublic Void get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<Void>InterruptedExceptionExecutionExceptionTimeoutExceptionCopyright © 2025. All rights reserved.