public interface ConversationCanceller
extends java.lang.Cloneable
Conversation
. 一个Conversation可以有多个ConversationCanceller.限定符和类型 | 方法和说明 |
---|---|
boolean |
cancelBasedOnInput(ConversationContext context,
java.lang.String input)
根据用户的输入反馈取消一个会话.
|
ConversationCanceller |
clone()
允许某一
ConversationFactory 在创建一个新Conversation 时
复制这个ConversationCanceller. |
void |
setConversation(Conversation conversation)
设置本ConversationCanceller可以取消的会话.
|
void setConversation(Conversation conversation)
原文:Sets the conversation this ConversationCanceller can optionally cancel.
conversation
- 一个会话boolean cancelBasedOnInput(ConversationContext context, java.lang.String input)
原文:Cancels a conversation based on user input.
context
- 关于会话的Context信息input
- 用户的输入值ConversationCanceller clone()
ConversationFactory
在创建一个新Conversation
时
复制这个ConversationCanceller.
实现这个方法应当重置一切内部的对象状态.
原文:Allows the ConversationFactory
to duplicate this
ConversationCanceller when creating a new Conversation
.
Implementing this method should reset any internal object state.