Class 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
    • Constructor Detail

      • SimplePollHandler

        public SimplePollHandler​(java.lang.String pollingUri,
                                 java.lang.Class pollAndResultClass)
        Creates a new instance of polling handler
        Parameters:
        pollingUri - URI for polling
        pollAndResultClass - class of the polling object and result (or Void)
    • 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