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 Detail

      • ingest

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

        default D waitForResult()
                         throws java.util.concurrent.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:
        java.util.concurrent.ExecutionException - if waiting was interrupted and there is no data