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 voidafterServicesStart()called outside of a transaction afterPlatformAPI.startNode()in a separate thread than the api callvoidbeforeServicesStart()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 RestartExceptionDescription copied from interface:TenantRestartHandlercalled in a transaction duringPlatformAPI.startNode()- Specified by:
beforeServicesStartin interfaceTenantRestartHandler- Throws:
RestartException
-
afterServicesStart
public void afterServicesStart()
Description copied from interface:TenantRestartHandlercalled outside of a transaction afterPlatformAPI.startNode()in a separate thread than the api call- Specified by:
afterServicesStartin interfaceTenantRestartHandler
-
-