public class ConversationAbandonedEvent
extends java.util.EventObject
构造器和说明 |
---|
ConversationAbandonedEvent(Conversation conversation) |
ConversationAbandonedEvent(Conversation conversation,
ConversationCanceller canceller) |
限定符和类型 | 方法和说明 |
---|---|
ConversationCanceller |
getCanceller()
获取终止该会话的
ConversationCanceller . |
ConversationContext |
getContext()
获取这个被终止的会话的上下文.
|
boolean |
gracefulExit()
指示该对话是怎样被终止的 - 在对话提示流程完成后自然终止
还是较早地通过
ConversationCanceller 终止. |
public ConversationAbandonedEvent(Conversation conversation)
public ConversationAbandonedEvent(Conversation conversation, ConversationCanceller canceller)
public ConversationCanceller getCanceller()
ConversationCanceller
.
原文:Gets the object that caused the conversation to be abandoned.
ConversationCanceller
public ConversationContext getContext()
原文:Gets the abandoned conversation's conversation context.
public boolean gracefulExit()
ConversationCanceller
终止.
Indicates how the conversation was abandoned - naturally as part of the
prompt chain or prematurely via a ConversationCanceller
.
Prompt
返回了空值或下一个prompt被优雅地终止返回true;
若会话是被ConversationCanceller终止的返回false.