public class ConversationManager extends Object
Constructor and Description |
---|
ConversationManager(WebBeansContext webBeansContext)
Creates new conversation manager
|
Modifier and Type | Method and Description |
---|---|
void |
addConversationContext(javax.enterprise.context.Conversation conversation,
ConversationContext context)
Adds new conversation context.
|
void |
destroyConversationContextWithSessionId(String sessionId)
Deprecated.
|
void |
destroyWithRespectToTimout()
Destroy unactive conversations.
|
Map<javax.enterprise.context.Conversation,ConversationContext> |
getAllConversationContexts() |
Map<javax.enterprise.context.Conversation,ConversationContext> |
getAndRemoveConversationMapWithSessionId(String sessionId)
Return all conversation/context associated with sessionid.
|
javax.enterprise.context.Conversation |
getConversationBeanReference()
Gets conversation instance from conversation bean.
|
ConversationContext |
getConversationContext(javax.enterprise.context.Conversation conversation)
Gets conversation's context instance.
|
Map<javax.enterprise.context.Conversation,ConversationContext> |
getConversationMapWithSessionId(String sessionId)
Return all conversation/context associated with sessionid.
|
ConversationImpl |
getPropogatedConversation(String conversationId,
String sessionId)
Gets conversation with id and session id.
|
boolean |
isConversationExistWithGivenId(String conversationId)
Check conversation id exists.
|
ConversationContext |
removeConversation(javax.enterprise.context.Conversation conversation)
Remove given conversation.
|
public ConversationManager(WebBeansContext webBeansContext)
public void addConversationContext(javax.enterprise.context.Conversation conversation, ConversationContext context)
conversation
- new conversationcontext
- new contextpublic boolean isConversationExistWithGivenId(String conversationId)
conversationId
- conversation idpublic Map<javax.enterprise.context.Conversation,ConversationContext> getConversationMapWithSessionId(String sessionId)
sessionId
- public Map<javax.enterprise.context.Conversation,ConversationContext> getAndRemoveConversationMapWithSessionId(String sessionId)
sessionId
- public ConversationContext removeConversation(javax.enterprise.context.Conversation conversation)
conversation
- conversation instancepublic ConversationContext getConversationContext(javax.enterprise.context.Conversation conversation)
conversation
- conversation instancepublic ConversationImpl getPropogatedConversation(String conversationId, String sessionId)
conversationId
- conversation idsessionId
- session id@Deprecated public void destroyConversationContextWithSessionId(String sessionId)
sessionId
- session idpublic javax.enterprise.context.Conversation getConversationBeanReference()
public void destroyWithRespectToTimout()
public Map<javax.enterprise.context.Conversation,ConversationContext> getAllConversationContexts()
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.