|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.webbeans.conversation.ConversationImpl
@RequestScoped @Named(value="javax.context.conversation") @Standard public class ConversationImpl
The current conversation implementation
Conversation
Constructor Summary | |
---|---|
ConversationImpl()
Creates a new conversation |
|
ConversationImpl(Conversation conversation)
Creates a new conversation from an existing one. |
Method Summary | |
---|---|
void |
begin()
Mark a transient conversation long running. |
void |
begin(java.lang.String id)
Mark a transient conversation long running. |
void |
end()
Mark a long running conversation transient |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getId()
Get the id associated with the current long running conversation |
java.lang.String |
getOriginalCid()
Gets the original ID of the conversation |
long |
getTimeout()
Get the timeout for the current long running conversation. |
int |
hashCode()
|
void |
init(ConversationIdGenerator conversationIdGenerator,
long timeout)
Initializes a new conversation |
boolean |
isLongRunning()
Determine if a conversation is long running or transient |
void |
setLongRunning(boolean longRunning)
|
void |
setTimeout(long timeout)
Set the timeout for the current long running conversation |
void |
switchTo(Conversation conversation)
Assumes the identity of another conversation |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ConversationImpl()
public ConversationImpl(Conversation conversation)
conversation
- The old conversationMethod Detail |
---|
@Initializer public void init(ConversationIdGenerator conversationIdGenerator, @ConversationInactivityTimeout long timeout)
conversationIdGenerator
- The conversation ID generatortimeout
- The conversation inactivity timeoutpublic void begin()
Conversation
begin
in interface Conversation
public void begin(java.lang.String id)
Conversation
begin
in interface Conversation
id
- the id of the conversationpublic void end()
Conversation
end
in interface Conversation
public java.lang.String getId()
Conversation
getId
in interface Conversation
public long getTimeout()
Conversation
getTimeout
in interface Conversation
public boolean isLongRunning()
Conversation
isLongRunning
in interface Conversation
public void setTimeout(long timeout)
Conversation
setTimeout
in interface Conversation
timeout
- the new timeout in millisecondspublic void switchTo(Conversation conversation)
conversation
- The new conversationpublic java.lang.String toString()
toString
in class java.lang.Object
public void setLongRunning(boolean longRunning)
public java.lang.String getOriginalCid()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |