|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.webbeans.conversation.ConversationEntry
public class ConversationEntry
Represents a long-running conversation entry
Constructor Summary | |
---|---|
protected |
ConversationEntry(Conversation conversation,
java.util.concurrent.Future<?> terminationHandle)
Creates a new conversation entry |
Method Summary | |
---|---|
boolean |
cancelTermination()
Cancels the timeout termination |
void |
destroy(javax.servlet.http.HttpSession session)
Destroys the conversation and it's associated conversational context |
Conversation |
getConversation()
|
boolean |
lock(long timeout)
Attempts to lock the conversation for exclusive usage |
static ConversationEntry |
of(Conversation conversation,
java.util.concurrent.Future<?> terminationHandle)
Factory method |
void |
reScheduleTermination(java.util.concurrent.Future<?> terminationHandle)
Re-schedules timeout termination |
boolean |
unlock()
Attempts to unlock the conversation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ConversationEntry(Conversation conversation, java.util.concurrent.Future<?> terminationHandle)
cid
- The conversation IDterminationHandle
- The timeout termination handleMethod Detail |
---|
public static ConversationEntry of(Conversation conversation, java.util.concurrent.Future<?> terminationHandle)
cid
- The conversation IDterminationHandle
- The timeout termination handle
public boolean cancelTermination()
public void destroy(javax.servlet.http.HttpSession session)
session
- The HTTP session for the backing context bean storepublic boolean lock(long timeout) throws java.lang.InterruptedException
timeout
- The time in milliseconds to wait on the lock
java.lang.InterruptedException
- If the lock operation was unsuccessfulpublic boolean unlock()
public void reScheduleTermination(java.util.concurrent.Future<?> terminationHandle)
terminationHandle
- The fresh timeout termination handlepublic Conversation getConversation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |