Package org.bonitasoft.engine.message
Class MessagesHandlingService
- java.lang.Object
-
- org.bonitasoft.engine.message.MessagesHandlingService
-
- All Implemented Interfaces:
LifecycleService,TenantLifecycleService
public class MessagesHandlingService extends java.lang.Object implements TenantLifecycleService
- Author:
- Baptiste Mesta
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNUMBER_OF_MESSAGES_EXECUTEDstatic java.lang.StringNUMBER_OF_MESSAGES_MATCHING_RETRIGGERED_TASKSstatic java.lang.StringNUMBER_OF_MESSAGES_POTENTIAL_MATCHED
-
Constructor Summary
Constructors Constructor Description MessagesHandlingService(EventInstanceService eventInstanceService, WorkService workService, LockService lockService, java.lang.Long tenantId, UserTransactionService userTransactionService, SessionAccessor sessionAccessor, BPMWorkFactory workFactory, io.micrometer.core.instrument.MeterRegistry meterRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpause()Temporary halt the execution of this service.voidresetMessageCouple(long messageInstanceId, long waitingMessageId)voidresume()resume the execution the servicevoidstart()Start the servicevoidstop()voidtriggerMatchingOfMessages()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.bonitasoft.engine.commons.TenantLifecycleService
init
-
-
-
-
Field Detail
-
NUMBER_OF_MESSAGES_EXECUTED
public static final java.lang.String NUMBER_OF_MESSAGES_EXECUTED
- See Also:
- Constant Field Values
-
NUMBER_OF_MESSAGES_POTENTIAL_MATCHED
public static final java.lang.String NUMBER_OF_MESSAGES_POTENTIAL_MATCHED
- See Also:
- Constant Field Values
-
NUMBER_OF_MESSAGES_MATCHING_RETRIGGERED_TASKS
public static final java.lang.String NUMBER_OF_MESSAGES_MATCHING_RETRIGGERED_TASKS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MessagesHandlingService
public MessagesHandlingService(EventInstanceService eventInstanceService, WorkService workService, LockService lockService, java.lang.Long tenantId, UserTransactionService userTransactionService, SessionAccessor sessionAccessor, BPMWorkFactory workFactory, io.micrometer.core.instrument.MeterRegistry meterRegistry)
-
-
Method Detail
-
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
public void triggerMatchingOfMessages() throws STransactionNotFoundException- Throws:
STransactionNotFoundException
-
resetMessageCouple
public void resetMessageCouple(long messageInstanceId, long waitingMessageId) throws SWaitingEventReadException, SWaitingEventModificationException, SMessageModificationException, SMessageInstanceReadException
-
-