Class CommonFutureDataService<T extends MeterReadingPermissionRequest>
java.lang.Object
energy.eddie.regionconnector.shared.services.CommonFutureDataService<T>
- Type Parameters:
T- The region connectors PermissionRequest
The intent of this class is to abstract the Future Data polling procedure of each individual Region Connector.
-
Constructor Summary
ConstructorsConstructorDescriptionCommonFutureDataService(CommonPollingService<T> pollingService, StatusPermissionRequestRepository<T> repository, String cronExpression, RegionConnectorMetadata metadata, org.springframework.scheduling.TaskScheduler taskScheduler, DataNeedCalculationService<DataNeed> calculationService) -
Method Summary
Modifier and TypeMethodDescriptionvoidThis method is used to fetch Future Data for a Region Connector.
-
Constructor Details
-
Method Details
-
fetchMeterData
public void fetchMeterData()This method is used to fetch Future Data for a Region Connector. All active PermissionRequests are fetched from the StatusPermissionRequestRepository. The status of each PermissionRequest is verified, and if needed, polling of FutureData takes place.
-