org.apache.aries.blueprint.utils.threading.impl
Class WrappedFuture<T>

java.lang.Object
  extended by org.apache.aries.blueprint.utils.threading.impl.WrappedFuture<T>
All Implemented Interfaces:
Future<T>

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


Constructor Summary
WrappedFuture(Future<T> f, Discardable<?> d)
           
 
Method Summary
 boolean cancel(boolean arg0)
           
 T get()
           
 T get(long timeout, TimeUnit timeunit)
           
 boolean isCancelled()
           
 boolean isDone()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WrappedFuture

public WrappedFuture(Future<T> f,
                     Discardable<?> d)
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 timeout,
             TimeUnit timeunit)
      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>


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.