Interface SignalPullDatasourceConnection

All Superinterfaces:
DatasourceConnectionV2, IndexingDatasourceConnection, PullDatasourceConnection

public interface SignalPullDatasourceConnection extends PullDatasourceConnection
Implemented by connections that query their datasources for samples (within signals) on-demand when Seeq requires data. Threading considerations: All methods may be called from different threads concurrently.
  • Method Details

    • getSamples

      Stream<Sample> getSamples(GetSamplesParameters parameters) throws Exception
      Queries the external system for signal data.
      Parameters:
      parameters - A GetSamplesParameters object containing the parameters of the request. Consult the documentation for each field on that object for further information.
      Returns:
      A stream used to retrieve the samples. A stream is used so the connection author can avoid loading all samples into memory, if the underlying datasource interface allows it. Streams can be created in a variety of ways, such as Guava's Streams.stream(iterable), Java's Stream.of(T... values), or Collection.stream().
      Throws:
      Exception - All exceptions will get caught and the text of the exception will be set as the user visible status.