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 Conversation
conversation
protected boolean
newConversation
-
Constructor Summary
Constructors Modifier Constructor Description protected
ConversationHolderImpl(Conversation conversation, boolean newConversation)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConversationHolderImpl
forNewConversation(Conversation conversation)
static ConversationHolderImpl
forReusedConversation(Conversation conversation)
Conversation
getConversation()
Returns the underlying conversation this holder is built with.boolean
isNewConversation()
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:ConversationHolder
Returns the underlying conversation this holder is built with.- Specified by:
getConversation
in interfaceConversationHolder
- Returns:
- the conversation object
-
isNewConversation
public boolean isNewConversation()
Description copied from interface:ConversationHolder
If this conversation was newly created, this method returnstrue
, for an existing one, it will returnfalse
.- Specified by:
isNewConversation
in interfaceConversationHolder
- Returns:
true
for a newly created conversation,false
otherwise
-
forNewConversation
public static ConversationHolderImpl forNewConversation(Conversation conversation)
-
forReusedConversation
public static ConversationHolderImpl forReusedConversation(Conversation conversation)
-
-