public class ConversationHolderImpl extends Object implements ConversationHolder
| Modifier and Type | Field and Description | 
|---|---|
| protected Conversation | conversation | 
| protected boolean | newConversation | 
| Modifier | Constructor and Description | 
|---|---|
| protected  | ConversationHolderImpl(Conversation conversation,
                      boolean newConversation) | 
| Modifier and Type | Method and 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 returns  true, for an existing one, it will returnfalse. | 
protected final Conversation conversation
protected final boolean newConversation
protected ConversationHolderImpl(Conversation conversation, boolean newConversation)
public Conversation getConversation()
ConversationHoldergetConversation in interface ConversationHolderpublic boolean isNewConversation()
ConversationHoldertrue, for an existing one, it will return false.isNewConversation in interface ConversationHoldertrue for a newly created conversation, false otherwisepublic static ConversationHolderImpl forNewConversation(Conversation conversation)
public static ConversationHolderImpl forReusedConversation(Conversation conversation)
Copyright © 2019. All rights reserved.