Package org.apache.webbeans.conversation
Class ConversationImpl
- java.lang.Object
-
- org.apache.webbeans.conversation.ConversationImpl
-
- All Implemented Interfaces:
Serializable,javax.enterprise.context.Conversation
public class ConversationImpl extends Object implements javax.enterprise.context.Conversation, Serializable
Implementation of theConversationinterface.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConversationImpl()Default constructor.ConversationImpl(WebBeansContext webBeansContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbegin()voidbegin(String id)This will also put the current ConversationContext into the SessionContextvoidend()This will also remove the current ConversationContext from the SessionContextStringgetId()longgetLastAccessTime()RuntimeExceptiongetProblemDuringCreation()longgetTimeout()voidiDontUseItAnymore()booleanisTransient()intiUseIt()voidsetProblemDuringCreation(RuntimeException problemDuringCreation)voidsetTimeout(long milliseconds)StringtoString()voidupdateLastAccessTime()Update conversation timeout value.
-
-
-
Constructor Detail
-
ConversationImpl
public ConversationImpl()
Default constructor. Used for proxies.
-
ConversationImpl
public ConversationImpl(WebBeansContext webBeansContext)
-
-
Method Detail
-
begin
public void begin()
- Specified by:
beginin interfacejavax.enterprise.context.Conversation
-
begin
public void begin(String id)
This will also put the current ConversationContext into the SessionContext- Specified by:
beginin interfacejavax.enterprise.context.Conversation
-
end
public void end()
This will also remove the current ConversationContext from the SessionContext- Specified by:
endin interfacejavax.enterprise.context.Conversation
-
iUseIt
public int iUseIt()
-
iDontUseItAnymore
public void iDontUseItAnymore()
-
getId
public String getId()
- Specified by:
getIdin interfacejavax.enterprise.context.Conversation
-
getTimeout
public long getTimeout()
- Specified by:
getTimeoutin interfacejavax.enterprise.context.Conversation
-
isTransient
public boolean isTransient()
- Specified by:
isTransientin interfacejavax.enterprise.context.Conversation
-
setTimeout
public void setTimeout(long milliseconds)
- Specified by:
setTimeoutin interfacejavax.enterprise.context.Conversation
-
getLastAccessTime
public long getLastAccessTime()
- Returns:
- the timestamp when this Conversation got accessed the last time
-
updateLastAccessTime
public void updateLastAccessTime()
Update conversation timeout value. Basically a 'touch' for the access time
-
getProblemDuringCreation
public RuntimeException getProblemDuringCreation()
-
setProblemDuringCreation
public void setProblemDuringCreation(RuntimeException problemDuringCreation)
-
-