org.jboss.webbeans.conversation
Class ServletConversationManager

java.lang.Object
  extended by org.jboss.webbeans.conversation.ServletConversationManager
All Implemented Interfaces:
java.io.Serializable, ConversationManager

@SessionScoped
@WebBean
public class ServletConversationManager
extends java.lang.Object
implements ConversationManager, java.io.Serializable

The default conversation manager

Author:
Nicklas Karlsson
See Also:
Serialized Form

Constructor Summary
ServletConversationManager()
          Creates a new conversation manager
 
Method Summary
 void beginOrRestoreConversation(java.lang.String cid)
          Begins or restores a conversation
 void cleanupConversation()
          Cleans up the current conversation, destroying transient conversation and handling long-running conversations
 void destroyAllConversations()
          Destroys all long-running conversations
static long getConversationConcurrentAccessTimeout()
           
static java.lang.String getConversationIdName()
           
static long getConversationTimeoutInMilliseconds()
           
 java.util.Set<Conversation> getLongRunningConversations()
          Gets the currently managed long-running conversations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletConversationManager

public ServletConversationManager()
Creates a new conversation manager

Method Detail

getConversationTimeoutInMilliseconds

@Produces
@ConversationInactivityTimeout
@WebBean
public static long getConversationTimeoutInMilliseconds()

getConversationConcurrentAccessTimeout

@Produces
@ConversationConcurrentAccessTimeout
@WebBean
public static long getConversationConcurrentAccessTimeout()

getConversationIdName

@Produces
@ConversationIdName
@WebBean
public static java.lang.String getConversationIdName()

beginOrRestoreConversation

public void beginOrRestoreConversation(java.lang.String cid)
Description copied from interface: ConversationManager
Begins or restores a conversation

Specified by:
beginOrRestoreConversation in interface ConversationManager
Parameters:
cid - The incoming conversation ID. Can be null in cases of transient conversations

cleanupConversation

public void cleanupConversation()
Description copied from interface: ConversationManager
Cleans up the current conversation, destroying transient conversation and handling long-running conversations

Specified by:
cleanupConversation in interface ConversationManager

destroyAllConversations

public void destroyAllConversations()
Description copied from interface: ConversationManager
Destroys all long-running conversations

Specified by:
destroyAllConversations in interface ConversationManager

getLongRunningConversations

public java.util.Set<Conversation> getLongRunningConversations()
Description copied from interface: ConversationManager
Gets the currently managed long-running conversations

Specified by:
getLongRunningConversations in interface ConversationManager
Returns:
the conversations


Copyright © 2011. All Rights Reserved.