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:
  • Constructor Details

    • SimplePollHandler

      public SimplePollHandler(String pollingUri, 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 Details

    • handlePollResult

      public void handlePollResult(T pollResult)
      Description copied from interface: PollHandler
      Handle result of single polling request.
      Parameters:
      pollResult - result of polling request