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 TypeMethodDescriptionvoidIngest data.default DIn case of synchronous services, waits for the response and returns it.
-
Method Details
-
ingest
Ingest data.- Parameters:
data- the data to ingest
-
waitForResult
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
-