Package energy.eddie.aiida.aggregator
Class InboundAggregator
java.lang.Object
energy.eddie.aiida.aggregator.Aggregator<InboundRecord>
energy.eddie.aiida.aggregator.InboundAggregator
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
Fields inherited from class energy.eddie.aiida.aggregator.Aggregator
combinedRecordSink, dataSourceAdapters, healthContributorRegistry -
Constructor Summary
ConstructorsConstructorDescriptionInboundAggregator(InboundRecordRepository inboundRecordRepository, org.springframework.boot.health.registry.HealthContributorRegistry healthContributorRegistry) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddNewDataSourceAdapter(DataSourceAdapter<? extends DataSource> dataSourceAdapter) Adds a newDataSourceAdapterto this aggregator and will subscribe to the Flux returned byDataSourceAdapter.start().reactor.core.publisher.Flux<InboundRecord> protected voidsaveRecordToDatabase(InboundRecord dataRecord) Methods inherited from class energy.eddie.aiida.aggregator.Aggregator
close, handleCombinedSinkError, handleError, publishRecordToCombinedFlux, removeDataSourceAdapter
-
Constructor Details
-
InboundAggregator
public InboundAggregator(InboundRecordRepository inboundRecordRepository, org.springframework.boot.health.registry.HealthContributorRegistry healthContributorRegistry)
-
-
Method Details
-
addNewDataSourceAdapter
Description copied from class:AggregatorAdds a newDataSourceAdapterto this aggregator and will subscribe to the Flux returned byDataSourceAdapter.start().- Overrides:
addNewDataSourceAdapterin classAggregator<InboundRecord>- Parameters:
dataSourceAdapter- The new data source adapter to add. No check is made if this is a duplicate.
-
saveRecordToDatabase
- Specified by:
saveRecordToDatabasein classAggregator<InboundRecord>
-
inboundRecordFlux
-