Interface CommonPollingService<T>
- All Known Implementing Classes:
DataApiService,PollingService,PollingService,PollingService,PollingService,PollingService,PollingService
public interface CommonPollingService<T>
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisActiveAndNeedsToBeFetched(T permissionRequest) Checks, if a permission request is currently active and needs to fetch data.voidpollTimeSeriesData(T activePermission) Polls future meter readings for active permission requests.
-
Method Details
-
pollTimeSeriesData
Polls future meter readings for active permission requests.- Parameters:
activePermission- The permission request that data needs to be polled for.
-
isActiveAndNeedsToBeFetched
Checks, if a permission request is currently active and needs to fetch data.- Parameters:
permissionRequest- The permission request whose status needs to be checked.- Returns:
- True if active and needs to be fetched, otherwise false.
-