org.granite.client.tide.impl
Class FutureResult<T>
java.lang.Object
org.granite.client.tide.impl.FutureResult<T>
- All Implemented Interfaces:
- Future<T>
public class FutureResult<T>
- extends Object
- implements Future<T>
- Author:
- William DRAI
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FutureResult
public FutureResult(ResponseMessageFuture responseMessageFuture,
ComponentListener<T> componentListener)
cancel
public boolean cancel(boolean mayInterruptIfRunning)
- Specified by:
cancel in interface Future<T>
isCancelled
public boolean isCancelled()
- Specified by:
isCancelled in interface Future<T>
isDone
public boolean isDone()
- Specified by:
isDone 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 unit)
throws InterruptedException,
ExecutionException,
TimeoutException
- Specified by:
get in interface Future<T>
- Throws:
InterruptedException
ExecutionException
TimeoutException