Class MessagesRestartHandler
- java.lang.Object
-
- org.bonitasoft.engine.tenant.restart.MessagesRestartHandler
-
- All Implemented Interfaces:
TenantRestartHandler
@Component public class MessagesRestartHandler extends java.lang.Object implements TenantRestartHandler
Resets all "In Progress" BPMN Message couples so that they can be triggered again on next cron. Restart workExecuteMessageCoupleWork
- Author:
- Emmanuel Duchastenier
-
-
Constructor Summary
Constructors Constructor Description MessagesRestartHandler(TechnicalLoggerService technicalLoggerService, EventInstanceRepository eventInstanceRepository, UserTransactionService userTransactionService, MessagesHandlingService messagesHandlingService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterServicesStart()
called outside of a transaction afterPlatformAPI.startNode()
in a separate thread than the api callvoid
beforeServicesStart()
called in a transaction duringPlatformAPI.startNode()
-
-
-
Constructor Detail
-
MessagesRestartHandler
public MessagesRestartHandler(TechnicalLoggerService technicalLoggerService, EventInstanceRepository eventInstanceRepository, UserTransactionService userTransactionService, MessagesHandlingService messagesHandlingService)
-
-
Method Detail
-
beforeServicesStart
public void beforeServicesStart() throws RestartException
Description copied from interface:TenantRestartHandler
called in a transaction duringPlatformAPI.startNode()
- Specified by:
beforeServicesStart
in interfaceTenantRestartHandler
- Throws:
RestartException
-
afterServicesStart
public void afterServicesStart()
Description copied from interface:TenantRestartHandler
called outside of a transaction afterPlatformAPI.startNode()
in a separate thread than the api call- Specified by:
afterServicesStart
in interfaceTenantRestartHandler
-
-