org.drools.concurrent
Class FutureAdapter

java.lang.Object
  extended by org.drools.concurrent.FutureAdapter
All Implemented Interfaces:
Future

public class FutureAdapter
extends Object
implements Future


Constructor Summary
FutureAdapter(Future future)
           
 
Method Summary
 boolean cancel(boolean mayInterruptIfRunning)
           
 Object get()
           
 Object get(long timeout, TimeUnit unit)
           
 boolean isCancelled()
           
 boolean isDone()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FutureAdapter

public FutureAdapter(Future future)
Method Detail

cancel

public boolean cancel(boolean mayInterruptIfRunning)
Specified by:
cancel in interface Future

get

public Object get()
           throws InterruptedException,
                  ExecutionException
Specified by:
get in interface Future
Throws:
InterruptedException
ExecutionException

get

public Object get(long timeout,
                  TimeUnit unit)
           throws InterruptedException,
                  ExecutionException,
                  TimeoutException
Specified by:
get in interface Future
Throws:
InterruptedException
ExecutionException
TimeoutException

isCancelled

public boolean isCancelled()
Specified by:
isCancelled in interface Future

isDone

public boolean isDone()
Specified by:
isDone in interface Future


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.