@Beta public class Futures extends Object
Futures| Modifier and Type | Class and Description | 
|---|---|
static class  | 
Futures.FutureListener<T>  | 
static class  | 
Futures.LazyListenableFutureFunctionAdapter<I,O>  | 
static class  | 
Futures.ListenableFutureAdapter<T>  | 
| Constructor and Description | 
|---|
Futures()  | 
| Modifier and Type | Method and Description | 
|---|---|
static <I,O> com.google.common.util.concurrent.ListenableFuture<O> | 
compose(Future<I> future,
       com.google.common.base.Function<? super I,? extends O> function,
       ExecutorService executorService)
Just like  
Futures#compose except that we check the type of the executorService before
 creating the Future. | 
static <T> com.google.common.util.concurrent.ListenableFuture<T> | 
makeListenable(Future<T> future,
              ExecutorService executorService)
Just like  
Futures#makeListenable except that we pass in an executorService. | 
public static <I,O> com.google.common.util.concurrent.ListenableFuture<O> compose(Future<I> future, com.google.common.base.Function<? super I,? extends O> function, ExecutorService executorService)
Futures#compose except that we check the type of the executorService before
 creating the Future. If we are single threaded, invoke the function lazy as opposed to
 chaining, so that we don't invoke get() early.public static <T> com.google.common.util.concurrent.ListenableFuture<T> makeListenable(Future<T> future, ExecutorService executorService)
Futures#makeListenable except that we pass in an executorService.
 
 Temporary hack until http://code.google.com/p/guava-libraries/issues/detail?id=317 is fixed.Copyright © 2009-2013 jclouds. All Rights Reserved.