public interface IFuture<RESULT> extends Future<RESULT>
Modifier and Type | Method and Description |
---|---|
RESULT |
get()
Waits if necessary for the computation to complete, and then
retrieves its result.
|
RESULT |
get(long timeout,
TimeUnit unit)
Waits if necessary for at most the given time for the computation
to complete, and then retrieves its result, if available.
|
cancel, isCancelled, isDone
RESULT get() throws PogamutInterruptedException
get
in interface Future<RESULT>
PogamutInterruptedException
- if the current thread was interrupted while waitingRESULT get(long timeout, TimeUnit unit) throws PogamutInterruptedException, PogamutCancellationException, PogamutTimeoutException
get
in interface Future<RESULT>
timeout
- the maximum time to waitunit
- the time unit of the timeout argumentPogamutCancellationException
- if the computation was cancelledPogamutInterruptedException
- if the current thread was interrupted while waitingPogamutTimeoutException
- if the wait timed outCopyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.