public class ExceptionParsingListenableFuture<T> extends Object implements com.google.common.util.concurrent.ListenableFuture<T>
Constructor and Description |
---|
ExceptionParsingListenableFuture(com.google.common.util.concurrent.ListenableFuture<T> future,
com.google.common.base.Function<Exception,T> function) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(Runnable listener,
Executor exec) |
boolean |
cancel(boolean mayInterruptIfRunning) |
static <T> ExceptionParsingListenableFuture<T> |
create(com.google.common.util.concurrent.ListenableFuture<T> future,
com.google.common.base.Function<Exception,T> function) |
T |
get() |
T |
get(long timeout,
TimeUnit unit) |
boolean |
isCancelled() |
boolean |
isDone() |
public static <T> ExceptionParsingListenableFuture<T> create(com.google.common.util.concurrent.ListenableFuture<T> future, com.google.common.base.Function<Exception,T> function)
public boolean cancel(boolean mayInterruptIfRunning)
public T get() throws InterruptedException, ExecutionException
get
in interface Future<T>
InterruptedException
ExecutionException
public T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get
in interface Future<T>
InterruptedException
ExecutionException
TimeoutException
public boolean isCancelled()
isCancelled
in interface Future<T>
Copyright © 2009-2013 jclouds. All Rights Reserved.