org.jclouds.concurrent
Class Futures.LazyListenableFutureFunctionAdapter<I,O>

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

public static class Futures.LazyListenableFutureFunctionAdapter<I,O>
extends com.google.common.collect.ForwardingObject
implements com.google.common.util.concurrent.ListenableFuture<O>


Method Summary
 void addListener(Runnable listener, Executor exec)
           
 boolean cancel(boolean mayInterruptIfRunning)
           
protected  Object delegate()
           
 O get()
           
 O get(long timeout, TimeUnit unit)
           
 boolean isCancelled()
           
 boolean 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
 

Method Detail

get

public O get()
      throws InterruptedException,
             ExecutionException
Specified by:
get in interface Future<O>
Throws:
InterruptedException
ExecutionException

get

public O get(long timeout,
             TimeUnit unit)
      throws InterruptedException,
             ExecutionException,
             TimeoutException
Specified by:
get in interface Future<O>
Throws:
InterruptedException
ExecutionException
TimeoutException

cancel

public boolean cancel(boolean mayInterruptIfRunning)
Specified by:
cancel in interface Future<O>

isCancelled

public boolean isCancelled()
Specified by:
isCancelled in interface Future<O>

isDone

public boolean isDone()
Specified by:
isDone in interface Future<O>

addListener

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

delegate

protected Object delegate()
Specified by:
delegate in class com.google.common.collect.ForwardingObject


Copyright © 2009-2011 jclouds. All Rights Reserved.