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>
public abstract class SimplePollHandler<T> extends AbstractPollHandler<T,T>
For internal use by services employing polling.A simple poll handler using same type for polling and result.
- See Also:
FutureResult
-
-
Field Summary
-
Fields inherited from class com.gooddata.sdk.service.AbstractPollHandlerBase
pollClass, resultClass
-
-
Constructor Summary
Constructors Constructor Description SimplePollHandler(java.lang.String pollingUri, java.lang.Class pollAndResultClass)
Creates a new instance of polling handler
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handlePollResult(T pollResult)
Handle result of single polling request.-
Methods inherited from class com.gooddata.sdk.service.AbstractPollHandler
getPolling, getPollingUri, setPollingUri
-
Methods inherited from class com.gooddata.sdk.service.AbstractPollHandlerBase
getPollClass, getResult, getResultClass, isDone, isFinished, onFinish, setResult
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.gooddata.sdk.service.PollHandler
handlePollException
-
-
-
-
Method Detail
-
handlePollResult
public void handlePollResult(T pollResult)
Description copied from interface:PollHandler
Handle result of single polling request.- Parameters:
pollResult
- result of polling request
-
-