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