| java.lang.Object org.springframework.webflow.conversation.impl.ConversationContainer
ConversationContainer | class ConversationContainer implements Serializable(Code) | | Container for conversations that is stored in the session. When the
session expires this container will go with it, implicitly expiring all
contained conversations.
This is an internal helper class of the
SessionBindingConversationManager .
author: Erwin Vervaet |
ConversationContainer | public ConversationContainer(int maxConversations, String sessionKey)(Code) | | Create a new conversation container.
Parameters: maxConversations - the maximum number of allowed concurrentconversations, -1 for unlimited Parameters: sessionKey - the key of this conversation container in the session |
createAndAddConversation | public synchronized Conversation createAndAddConversation(ConversationId id, ConversationParameters parameters)(Code) | | Create a new conversation based on given parameters and add it to the
container.
Parameters: id - the unique id of the conversation Parameters: parameters - descriptive parameters the created conversation |
getSessionKey | String getSessionKey()(Code) | | Returns the key of this conversation container in the session.
For package level use only.
|
removeConversation | public synchronized void removeConversation(ConversationId id)(Code) | | Remove identified conversation from this container.
|
size | public int size()(Code) | | Returns the current size of the conversation container: the number
of conversations contained within it.
|
|
|