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 java.lang.Object implements DataIngestor<D>
Ingestor implementation for synchronous processing. Stores received data and returns it.- Author:
- Holger Eichelberger, SSE
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSyncDataIngestor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidingest(D data)Ingest data.DwaitForResult()In case of synchronous services, waits for the response and returns it.
-
-
-
Field Detail
-
received
private java.util.concurrent.BlockingQueue<D> received
-
-
Method Detail
-
ingest
public void ingest(D data)
Description copied from interface:DataIngestorIngest data.- Specified by:
ingestin interfaceDataIngestor<D>- Parameters:
data- the data to ingest
-
waitForResult
public D waitForResult() throws java.util.concurrent.ExecutionException
Description copied from interface:DataIngestorIn case of synchronous services, waits for the response and returns it. In case of asynchronous services, shall always return null.- Specified by:
waitForResultin interfaceDataIngestor<D>- Returns:
- the (synchronous) processing result
- Throws:
java.util.concurrent.ExecutionException- if waiting was interrupted and there is no data
-
-