org.apache.aries.blueprint.utils.threading.impl
Class WrappedFuture<T>
java.lang.Object
org.apache.aries.blueprint.utils.threading.impl.WrappedFuture<T>
- All Implemented Interfaces:
- Future<T>
public class WrappedFuture<T>
- extends Object
- implements Future<T>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WrappedFuture
public WrappedFuture(Future<T> f,
Discardable<?> d)
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.