org.apache.aries.blueprint.utils.threading.impl
Class WrappedScheduledFuture<T>
java.lang.Object
org.apache.aries.blueprint.utils.threading.impl.WrappedScheduledFuture<T>
- All Implemented Interfaces:
- Comparable<Delayed>, Delayed, Future<T>, ScheduledFuture<T>
public class WrappedScheduledFuture<T>
- extends Object
- implements ScheduledFuture<T>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WrappedScheduledFuture
public WrappedScheduledFuture(ScheduledFuture<T> f,
Discardable<?> d)
getDelay
public long getDelay(TimeUnit timeunit)
- Specified by:
getDelay
in interface Delayed
compareTo
public int compareTo(Delayed other)
- Specified by:
compareTo
in interface Comparable<Delayed>
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-2012 The Apache Software Foundation. All Rights Reserved.