All Known Implementing Classes:
PollExecStrategyDBQuery, PollExecStrategyMethod

public interface PollExecStrategy
Interface for polling data from a data source such as a relational database.

Lifecycle methods are for managing connection resources.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Indicate we are no going to use this object again.
    void
    Indicate we are done polling and can release resources.
    poll(Object lookupValues, ExprEvaluatorContext exprEvaluatorContext)
    Poll events using the keys provided.
    void
    Start the poll, called before any poll operation.
  • Method Details

    • start

      void start()
      Start the poll, called before any poll operation.
    • poll

      List<EventBean> poll(Object lookupValues, ExprEvaluatorContext exprEvaluatorContext)
      Poll events using the keys provided.
      Parameters:
      lookupValues - is keys for exeuting a query or such
      exprEvaluatorContext - context
      Returns:
      a list of events for the keys
    • done

      void done()
      Indicate we are done polling and can release resources.
    • destroy

      void destroy()
      Indicate we are no going to use this object again.