Class CommonTimeoutService
java.lang.Object
energy.eddie.regionconnector.shared.timeout.CommonTimeoutService
-
Constructor Summary
ConstructorsConstructorDescriptionCommonTimeoutService(StalePermissionRequestRepository<?> repository, PermissionEventFactory factory, Outbox outbox, TimeoutConfiguration config, RegionConnectorMetadata metadata) -
Method Summary
Modifier and TypeMethodDescriptionvoidtimeout()Times out all permission requests returned by theStalePermissionRequestRepository.
-
Constructor Details
-
Method Details
-
timeout
public void timeout()Times out all permission requests returned by theStalePermissionRequestRepository. Depending on the status of the permission request, different events are emitted. If the permission request has the statusVALIDATEDan event with the statusSENT_TO_PERMISSION_ADMINISTRATORand another event with the statusTIMED_OUTare emitted. If the permission request has the statusSENT_TO_PERMISSION_ADMINISTRATORonly the timed-out event is emitted.
-