Class ConversationHolderImpl
- java.lang.Object
-
- com.flowable.engage.engine.impl.conversation.ConversationHolderImpl
-
- All Implemented Interfaces:
ConversationHolder
public class ConversationHolderImpl extends Object implements ConversationHolder
- Author:
- Filip Hrisafov
-
-
Field Summary
Fields Modifier and Type Field Description protected Conversationconversationprotected booleannewConversation
-
Constructor Summary
Constructors Modifier Constructor Description protectedConversationHolderImpl(Conversation conversation, boolean newConversation)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConversationHolderImplforNewConversation(Conversation conversation)static ConversationHolderImplforReusedConversation(Conversation conversation)ConversationgetConversation()Returns the underlying conversation this holder is built with.booleanisNewConversation()If this conversation was newly created, this method returnstrue, for an existing one, it will returnfalse.
-
-
-
Field Detail
-
conversation
protected final Conversation conversation
-
newConversation
protected final boolean newConversation
-
-
Constructor Detail
-
ConversationHolderImpl
protected ConversationHolderImpl(Conversation conversation, boolean newConversation)
-
-
Method Detail
-
getConversation
public Conversation getConversation()
Description copied from interface:ConversationHolderReturns the underlying conversation this holder is built with.- Specified by:
getConversationin interfaceConversationHolder- Returns:
- the conversation object
-
isNewConversation
public boolean isNewConversation()
Description copied from interface:ConversationHolderIf this conversation was newly created, this method returnstrue, for an existing one, it will returnfalse.- Specified by:
isNewConversationin interfaceConversationHolder- Returns:
truefor a newly created conversation,falseotherwise
-
forNewConversation
public static ConversationHolderImpl forNewConversation(Conversation conversation)
-
forReusedConversation
public static ConversationHolderImpl forReusedConversation(Conversation conversation)
-
-