Interface DataIngestor<D>

Type Parameters:
D - the type od data to ingest
All Known Implementing Classes:
AbstractPythonProcessService.SyncDataIngestor

public interface DataIngestor<D>
Allows to ingest data asynchronously. An ingestor encapsulates access to a certain named channel but does not expose the channel or its name.
Author:
Holger Eichelberger, SSE
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    ingest(D data)
    Ingest data.
    default D
    In case of synchronous services, waits for the response and returns it.
  • Method Details

    • ingest

      void ingest(D data)
      Ingest data.
      Parameters:
      data - the data to ingest
    • waitForResult

      default D waitForResult() throws ExecutionException
      In case of synchronous services, waits for the response and returns it. In case of asynchronous services, shall always return null.
      Returns:
      the (synchronous) processing result
      Throws:
      ExecutionException - if waiting was interrupted and there is no data