Interface HistoricalDataReceiver


public interface HistoricalDataReceiver
Callback interface for incremental (streaming) historical data retrieval. Allows the caller to receive collected DCI data page by page (newest to oldest) instead of waiting for the entire data set to be loaded, and to abort loading early.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Called on the calling thread after each page of data has been appended to the series.
  • Method Details

    • dataReceived

      boolean dataReceived(DataSeries data)
      Called on the calling thread after each page of data has been appended to the series. The same cumulative DataSeries object is passed on every call and keeps growing between calls, so implementations that retain it across threads must take a snapshot (via the DataSeries copy constructor).
      Parameters:
      data - cumulative data received so far
      Returns:
      true to continue loading, false to abort loading