org.jclouds.concurrent
Class Futures.LazyListenableFutureFunctionAdapter<I,O>
java.lang.Object
com.google.common.collect.ForwardingObject
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>
Methods inherited from class com.google.common.collect.ForwardingObject |
toString |
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.