org.ow2.util.pool.impl.enhanced.internal.actionscheduler
Class FutureTaskReallyCancellable<E>

java.lang.Object
  extended by org.ow2.util.pool.impl.enhanced.internal.actionscheduler.FutureTaskReallyCancellable<E>
Type Parameters:
E - return type
All Implemented Interfaces:
java.lang.Runnable, java.util.concurrent.Future<E>

public class FutureTaskReallyCancellable<E>
extends java.lang.Object
implements java.lang.Runnable, java.util.concurrent.Future<E>

Author:
Gael Lalire

Constructor Summary
FutureTaskReallyCancellable(java.util.concurrent.Callable<E> callable)
           
 
Method Summary
 boolean cancel(boolean paramBoolean)
           
protected  void done()
           
 E get()
           
 E get(long paramLong, java.util.concurrent.TimeUnit paramTimeUnit)
           
 boolean isCancelled()
           
 boolean isDone()
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FutureTaskReallyCancellable

public FutureTaskReallyCancellable(java.util.concurrent.Callable<E> callable)
Method Detail

cancel

public boolean cancel(boolean paramBoolean)
Specified by:
cancel in interface java.util.concurrent.Future<E>

run

public void run()
Specified by:
run in interface java.lang.Runnable

done

protected void done()

get

public E get()
      throws java.lang.InterruptedException,
             java.util.concurrent.ExecutionException
Specified by:
get in interface java.util.concurrent.Future<E>
Throws:
java.lang.InterruptedException
java.util.concurrent.ExecutionException

get

public E get(long paramLong,
             java.util.concurrent.TimeUnit paramTimeUnit)
      throws java.lang.InterruptedException,
             java.util.concurrent.ExecutionException,
             java.util.concurrent.TimeoutException
Specified by:
get in interface java.util.concurrent.Future<E>
Throws:
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException

isCancelled

public boolean isCancelled()
Specified by:
isCancelled in interface java.util.concurrent.Future<E>

isDone

public boolean isDone()
Specified by:
isDone in interface java.util.concurrent.Future<E>


Copyright © 2007-2009 OW2 Consortium. All Rights Reserved.