Package org.bonitasoft.engine.message
Class MessagesHandlingService
java.lang.Object
org.bonitasoft.engine.message.MessagesHandlingService
- All Implemented Interfaces:
LifecycleService,TenantLifecycleService
- Author:
- Baptiste Mesta
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMessagesHandlingService(EventInstanceService eventInstanceService, WorkService workService, LockService lockService, UserTransactionService userTransactionService, BPMWorkFactory workFactory, io.micrometer.core.instrument.MeterRegistry meterRegistry) -
Method Summary
Modifier and TypeMethodDescriptionvoidpause()Temporary halt the execution of this service.voidresetMessageCouple(long messageInstanceId, long waitingMessageId) voidresume()resume the execution the servicevoidstart()Start the servicevoidstop()voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bonitasoft.engine.commons.TenantLifecycleService
init
-
Field Details
-
NUMBER_OF_MESSAGES_EXECUTED
- See Also:
-
NUMBER_OF_MESSAGES_POTENTIAL_MATCHED
- See Also:
-
NUMBER_OF_MESSAGES_MATCHING_RETRIGGERED_TASKS
- See Also:
-
-
Constructor Details
-
MessagesHandlingService
public MessagesHandlingService(EventInstanceService eventInstanceService, WorkService workService, LockService lockService, UserTransactionService userTransactionService, BPMWorkFactory workFactory, io.micrometer.core.instrument.MeterRegistry meterRegistry)
-
-
Method Details
-
start
public void start()Description copied from interface:LifecycleServiceStart the service- Specified by:
startin interfaceLifecycleService
-
stop
public void stop()- Specified by:
stopin interfaceLifecycleService
-
pause
public void pause()Description copied from interface:LifecycleServiceTemporary halt the execution of this service.- Specified by:
pausein interfaceLifecycleService
-
resume
public void resume()Description copied from interface:LifecycleServiceresume the execution the service- Specified by:
resumein interfaceLifecycleService
-
triggerMatchingOfMessages
- Throws:
STransactionNotFoundException
-
resetMessageCouple
public void resetMessageCouple(long messageInstanceId, long waitingMessageId) throws SWaitingEventReadException, SWaitingEventModificationException, SMessageModificationException, SMessageInstanceReadException
-