public interface FutureResult<T>
| Modifier and Type | Method and Description |
|---|---|
T |
get()
Wait for the result to be available and return it's value
|
T |
get(long timeout,
TimeUnit unit)
Wait for the result to be available up to given time and return it's value
|
String |
getPollingUri()
Get URI used for polling
|
boolean |
isDone()
Checks if the result is available
|
boolean isDone()
GoodDataException - when polling fails or the thread was interruptedT get()
GoodDataException - when polling fails or the thread was interruptedT get(long timeout, TimeUnit unit)
timeout - timeout valueunit - timeout unitGoodDataException - when polling fails, the timeout expires or the thread was interruptedString getPollingUri()
Copyright © 2019. All rights reserved.