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 CompletionListener
IllegalStateException
public void onException(Exception e) throws IllegalStateException
onException
in interface CompletionListener
IllegalStateException
public boolean isCancelled()
isCancelled
in interface Future<Void>
public Void get() throws InterruptedException, ExecutionException
get
in interface Future<Void>
InterruptedException
ExecutionException
public Void get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get
in interface Future<Void>
InterruptedException
ExecutionException
TimeoutException
Copyright © 2017. All rights reserved.