public class UnreadMessageCountEventListener extends AbstractFlowableEngageEngineEventListener
This is listener is invoked before commit in order to make sure that all conversations have been flushed. In theory this could be done by implementing a bulk update in the SqlSession in OSS.
The use case is when messages are sent to a conversation during the creation of the conversation.
Modifier and Type | Field and Description |
---|---|
protected org.flowable.common.engine.impl.interceptor.CommandExecutor |
commandExecutor |
types
Constructor and Description |
---|
UnreadMessageCountEventListener(org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor) |
Modifier and Type | Method and Description |
---|---|
protected void |
onMessageSend(FlowableMessageEvent messageEvent) |
isFailOnException, onAddedParticipants, onBeforeMessageInsert, onConversationNameUpdated, onConversationStarted, onEvent, onRemovedParticipants, onSendNotification
protected final org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor
public UnreadMessageCountEventListener(org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor)
protected void onMessageSend(FlowableMessageEvent messageEvent)
onMessageSend
in class AbstractFlowableEngageEngineEventListener
Copyright © 2019. All rights reserved.