Class AcceptedHandler
java.lang.Object
energy.eddie.regionconnector.de.eta.permission.handlers.AcceptedHandler
- All Implemented Interfaces:
EventHandler<AcceptedEvent>
Event handler for accepted permission requests.
When a permission request is accepted, this handler fetches the validated historical data
from the ETA Plus API and publishes it to the ValidatedHistoricalDataStream.
-
Constructor Summary
ConstructorsConstructorDescriptionAcceptedHandler(EventBus eventBus, DePermissionRequestRepository repository, EtaPlusApiClient apiClient, ValidatedHistoricalDataStream stream, Outbox outbox) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(AcceptedEvent event) Subscription method for the event bus
-
Constructor Details
-
Method Details
-
accept
Description copied from interface:EventHandlerSubscription method for the event bus- Specified by:
acceptin interfaceEventHandler<AcceptedEvent>- Parameters:
event- event that indicates that a permission request has been changed
-