org.drools.concurrent
Class FutureAdapter
java.lang.Object
org.drools.concurrent.FutureAdapter
- All Implemented Interfaces:
- Future
public class FutureAdapter
- extends Object
- implements Future
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FutureAdapter
public FutureAdapter(Future future)
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-2013 JBoss Inc.. All Rights Reserved.