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

java.lang.Object
  extended by 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>


Constructor Summary
WrappedScheduledFuture(ScheduledFuture<T> f, Discardable<?> d)
           
 
Method Summary
 boolean cancel(boolean arg0)
           
 int compareTo(Delayed other)
           
 T get()
           
 T get(long timeout, TimeUnit timeunit)
           
 long getDelay(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

WrappedScheduledFuture

public WrappedScheduledFuture(ScheduledFuture<T> f,
                              Discardable<?> d)
Method Detail

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-2011 The Apache Software Foundation. All Rights Reserved.