Interface DataConsumer<T extends PersistentData>
- Type Parameters:
T- The type of data this consumer accepts. Must extendPersistentData.
- All Known Implementing Classes:
AbstractDatasourceSink,com.inductiveautomation.ignition.gateway.storeforward.sinks.AbstractRemoteSink,AbstractSink,HistoricalRecordSink,RemoteHistorianSink,TagHistoryDataSinkBridge
public interface DataConsumer<T extends PersistentData>
A consumer interface that can store data of type
T which extends PersistentData.-
Method Summary
Modifier and TypeMethodDescriptionvoidStores a list of persistent data.default voidStores a single instance of persistent data.default QualityCodevalidateFlavor(PersistentFlavor<?> flavor) Validates a givenPersistentFlavor.
-
Method Details
-
storeData
Stores a single instance of persistent data. The default implementation simply wraps the data into an immutable list and callsstoreData(List).- Parameters:
data- The data to be stored- Throws:
DataStorageException- if an error occurs while storing data
-
storeData
Stores a list of persistent data.- Parameters:
data- The data to be stored- Throws:
DataStorageException- if an error occurs while storing data
-
validateFlavor
Validates a givenPersistentFlavor. The default implementation always gives an uncertain quality code.- Parameters:
flavor- The flavor to be validated- Returns:
- A
QualityCodedenoting the evaluated quality of the flavor. By default, returnsQualityCode.Uncertain.
-