org.jclouds.concurrent
Class Futures.ListenableFutureAdapter<T>

java.lang.Object
  extended by com.google.common.collect.ForwardingObject
      extended by com.google.common.util.concurrent.ForwardingFuture<T>
          extended by org.jclouds.concurrent.Futures.ListenableFutureAdapter<T>
All Implemented Interfaces:
com.google.common.util.concurrent.ListenableFuture<T>, Future<T>
Enclosing class:
Futures

public static class Futures.ListenableFutureAdapter<T>
extends com.google.common.util.concurrent.ForwardingFuture<T>
implements com.google.common.util.concurrent.ListenableFuture<T>


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.common.util.concurrent.ForwardingFuture
com.google.common.util.concurrent.ForwardingFuture.SimpleForwardingFuture<V>
 
Method Summary
 void addListener(Runnable listener, Executor exec)
           
protected  Future<T> delegate()
           
 
Methods inherited from class com.google.common.util.concurrent.ForwardingFuture
cancel, get, get, isCancelled, isDone
 
Methods inherited from class com.google.common.collect.ForwardingObject
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.concurrent.Future
cancel, get, get, isCancelled, isDone
 

Method Detail

delegate

protected Future<T> delegate()
Overrides:
delegate in class com.google.common.util.concurrent.ForwardingFuture<T>

addListener

public void addListener(Runnable listener,
                        Executor exec)
Specified by:
addListener in interface com.google.common.util.concurrent.ListenableFuture<T>


Copyright © 2009-2011 jclouds. All Rights Reserved.