java.lang.CloneableExactMatchConversationCanceller, InactivityConversationCanceller, ManuallyAbandonedConversationCancellerpublic interface ConversationCanceller
extends java.lang.Cloneable
Conversation. A Conversation can have more than one ConversationCanceller.| Modifier and Type | Method | Description |
|---|---|---|
boolean |
cancelBasedOnInput(ConversationContext context,
java.lang.String input) |
Cancels a conversation based on user input.
|
ConversationCanceller |
clone() |
Allows the
ConversationFactory to duplicate this
ConversationCanceller when creating a new Conversation. |
void |
setConversation(Conversation conversation) |
Sets the conversation this ConversationCanceller can optionally cancel.
|
void setConversation(Conversation conversation)
conversation - A conversation.boolean cancelBasedOnInput(ConversationContext context, java.lang.String input)
context - Context information about the conversation.input - The input text from the user.ConversationCanceller clone()
ConversationFactory to duplicate this
ConversationCanceller when creating a new Conversation.
Implementing this method should reset any internal object state.
Copyright © 2018. All rights reserved.