public interface PromptAccumulator
SystemOutput.| Modifier and Type | Method and Description |
|---|---|
void |
queuePrompt(SpeakableText speakable)
Queues the given prompt without rendereing it.
|
void |
renderPrompts(java.lang.String sessionId,
DocumentServer server,
CallControlProperties callProps)
Notifies the implementation platform about the end of the prompt
queuing that has been started by
setPromptTimeout(long). |
void |
setPromptTimeout(long timeout)
Sets the default timeout to use.
|
void setPromptTimeout(long timeout)
This method is intended to be called prior to queuing prompts
via queuePrompt(SpeakableText), so it also clears the list of
queued prompts.
timeout - default timeout.void queuePrompt(SpeakableText speakable)
After all prompts have been queued, the end of prompt queuing must be
indicated by renderPrompts(String, DocumentServer, CallControlProperties).
speakable - the prompt to queue.void renderPrompts(java.lang.String sessionId,
DocumentServer server,
CallControlProperties callProps)
throws BadFetchError,
NoresourceError,
ConnectionDisconnectHangupEvent
setPromptTimeout(long).
It is assumed that the PromptAccumulator has knowledge about
the ImplementationPlatform to render the output.
sessionId - the current session idserver - the document server to usecallProps - properties for the call controlBadFetchError - error queuing the promptNoresourceError - Output device is not available.ConnectionDisconnectHangupEvent - the user hung up