-
- All Superinterfaces:
Annot8Component,AutoCloseable
public interface Source extends Annot8Component
Base processor interface from which all sources extend.Sources read data from somewhere (e.g. a file system, or a database) and produce items that will be processed by other components.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SourceResponseread(ItemFactory itemFactory)Read from the data source and return new items if found-
Methods inherited from interface io.annot8.api.components.Annot8Component
close
-
-
-
-
Method Detail
-
read
SourceResponse read(ItemFactory itemFactory)
Read from the data source and return new items if found- Parameters:
itemFactory- factory used to create new items- Returns:
- status response
-
-