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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidIngest data.In case of synchronous services, waits for the response and returns it.
-
Field Details
-
received
-
-
Constructor Details
-
SyncDataIngestor
protected SyncDataIngestor()
-
-
Method Details
-
ingest
Description copied from interface:DataIngestorIngest data.- Specified by:
ingestin interfaceDataIngestor<D>- Parameters:
data- the data to ingest
-
waitForResult
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:
ExecutionException- if waiting was interrupted and there is no data
-