Class AbstractPythonProcessService.SyncDataIngestor<D>

java.lang.Object
de.iip_ecosphere.platform.services.environment.AbstractPythonProcessService.SyncDataIngestor<D>
Type Parameters:
D - type of data to be ingested
All Implemented Interfaces:
DataIngestor<D>
Enclosing class:
AbstractPythonProcessService

protected static class AbstractPythonProcessService.SyncDataIngestor<D> extends Object implements DataIngestor<D>
Ingestor implementation for synchronous processing. Stores received data and returns it.
Author:
Holger Eichelberger, SSE
  • Field Details

  • Constructor Details

    • SyncDataIngestor

      protected SyncDataIngestor()
  • Method Details

    • ingest

      public void ingest(D data)
      Description copied from interface: DataIngestor
      Ingest data.
      Specified by:
      ingest in interface DataIngestor<D>
      Parameters:
      data - the data to ingest
    • waitForResult

      public D waitForResult() throws ExecutionException
      Description copied from interface: DataIngestor
      In case of synchronous services, waits for the response and returns it. In case of asynchronous services, shall always return null.
      Specified by:
      waitForResult in interface DataIngestor<D>
      Returns:
      the (synchronous) processing result
      Throws:
      ExecutionException - if waiting was interrupted and there is no data