Package com.gooddata.sdk.service
Class PollResult<T>
java.lang.Object
com.gooddata.sdk.service.PollResult<T>
- All Implemented Interfaces:
FutureResult<T>
Represents the result retrieved by polling on the REST API.
-
Constructor Summary
ConstructorsConstructorDescriptionPollResult(AbstractService service, PollHandler<?, T> handler) Creates a new instance of the result to be eventually retrieved by polling on the REST API. -
Method Summary
-
Constructor Details
-
PollResult
Creates a new instance of the result to be eventually retrieved by polling on the REST API.For internal use by services employing polling.
- Parameters:
service- this servicehandler- poll handler
-
-
Method Details
-
isDone
public boolean isDone()Description copied from interface:FutureResultChecks if the result is available- Specified by:
isDonein interfaceFutureResult<T>- Returns:
- true if so
-
get
Description copied from interface:FutureResultWait for the result to be available and return it's value- Specified by:
getin interfaceFutureResult<T>- Returns:
- result value
-
get
Description copied from interface:FutureResultWait for the result to be available up to given time and return it's value- Specified by:
getin interfaceFutureResult<T>- Parameters:
timeout- timeout valueunit- timeout unit- Returns:
- result value
-
getPollingUri
Get URI used for polling- Specified by:
getPollingUriin interfaceFutureResult<T>- Returns:
- URI string
-