org.jclouds.concurrent.config
Class DescribedFuture<T>

java.lang.Object
  extended by org.jclouds.concurrent.config.DescribedFuture<T>
All Implemented Interfaces:
Future<T>

public class DescribedFuture<T>
extends Object
implements Future<T>


Field Summary
protected  Future<T> delegate
           
 
Constructor Summary
DescribedFuture(Future<T> delegate, String description, StackTraceElement[] submissionTrace)
           
 
Method Summary
 boolean cancel(boolean arg0)
           
 boolean equals(Object obj)
           
 T get()
           
 T get(long arg0, TimeUnit arg1)
           
 int hashCode()
           
 boolean isCancelled()
           
 boolean isDone()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

delegate

protected final Future<T> delegate
Constructor Detail

DescribedFuture

public DescribedFuture(Future<T> delegate,
                       String description,
                       StackTraceElement[] submissionTrace)
Method Detail

cancel

public boolean cancel(boolean arg0)
Specified by:
cancel in interface Future<T>

get

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

get

public T get(long arg0,
             TimeUnit arg1)
      throws InterruptedException,
             ExecutionException,
             TimeoutException
Specified by:
get in interface Future<T>
Throws:
InterruptedException
ExecutionException
TimeoutException

isCancelled

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

isDone

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

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2013 jclouds. All Rights Reserved.