Package org.apache.webbeans.conversation
Class ConversationImpl
- java.lang.Object
-
- org.apache.webbeans.conversation.ConversationImpl
-
- All Implemented Interfaces:
jakarta.enterprise.context.Conversation,Serializable
public class ConversationImpl extends Object implements jakarta.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 interfacejakarta.enterprise.context.Conversation
-
begin
public void begin(String id)
This will also put the current ConversationContext into the SessionContext- Specified by:
beginin interfacejakarta.enterprise.context.Conversation
-
end
public void end()
This will also remove the current ConversationContext from the SessionContext- Specified by:
endin interfacejakarta.enterprise.context.Conversation
-
iUseIt
public int iUseIt()
-
iDontUseItAnymore
public void iDontUseItAnymore()
-
getId
public String getId()
- Specified by:
getIdin interfacejakarta.enterprise.context.Conversation
-
getTimeout
public long getTimeout()
- Specified by:
getTimeoutin interfacejakarta.enterprise.context.Conversation
-
isTransient
public boolean isTransient()
- Specified by:
isTransientin interfacejakarta.enterprise.context.Conversation
-
setTimeout
public void setTimeout(long milliseconds)
- Specified by:
setTimeoutin interfacejakarta.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)
-
-