Package com.gooddata.sdk.service
Class SimplePollHandler<T>
java.lang.Object
com.gooddata.sdk.service.AbstractPollHandlerBase<P,R>
com.gooddata.sdk.service.AbstractPollHandler<T,T>
com.gooddata.sdk.service.SimplePollHandler<T>
- Type Parameters:
T- polling and result type
- All Implemented Interfaces:
PollHandler<T,T>
For internal use by services employing polling.
A simple poll handler using same type for polling and result.
- See Also:
-
Field Summary
Fields inherited from class com.gooddata.sdk.service.AbstractPollHandlerBase
pollClass, resultClass -
Constructor Summary
ConstructorsConstructorDescriptionSimplePollHandler(String pollingUri, Class pollAndResultClass) Creates a new instance of polling handler -
Method Summary
Modifier and TypeMethodDescriptionvoidhandlePollResult(T pollResult) Handle result of single polling request.Methods inherited from class com.gooddata.sdk.service.AbstractPollHandler
getPolling, getPollingUri, setPollingUriMethods inherited from class com.gooddata.sdk.service.AbstractPollHandlerBase
getPollClass, getResult, getResultClass, isDone, isFinished, onFinish, setResultMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.gooddata.sdk.service.PollHandler
handlePollException
-
Constructor Details
-
SimplePollHandler
Creates a new instance of polling handler- Parameters:
pollingUri- URI for pollingpollAndResultClass- class of the polling object and result (orVoid)
-
-
Method Details
-
handlePollResult
Description copied from interface:PollHandlerHandle result of single polling request.- Parameters:
pollResult- result of polling request
-