Package org.netxms.client.datacollection
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 TypeMethodDescriptionbooleandataReceived(DataSeries data) Called on the calling thread after each page of data has been appended to the series.
-
Method Details
-
dataReceived
Called on the calling thread after each page of data has been appended to the series. The same cumulativeDataSeriesobject is passed on every call and keeps growing between calls, so implementations that retain it across threads must take a snapshot (via theDataSeriescopy constructor).- Parameters:
data- cumulative data received so far- Returns:
- true to continue loading, false to abort loading
-