|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.weld.conversation.ConversationEntry
public class ConversationEntry
Represents a long-running conversation entry
| Constructor Summary | |
|---|---|
protected |
ConversationEntry(org.jboss.weld.context.api.BeanStore beanStore,
ConversationImpl conversation,
java.util.concurrent.Future<?> terminationHandle)
Creates a new conversation entry |
| Method Summary | |
|---|---|
boolean |
cancelTermination()
Cancels the timeout termination |
void |
destroy()
Destroys the conversation and it's associated conversational context |
ConversationImpl |
getConversation()
|
boolean |
lock(long timeout)
Attempts to lock the conversation for exclusive usage |
static ConversationEntry |
of(org.jboss.weld.context.api.BeanStore beanStore,
ConversationImpl 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(org.jboss.weld.context.api.BeanStore beanStore,
ConversationImpl conversation,
java.util.concurrent.Future<?> terminationHandle)
cid - The conversation IDterminationHandle - The timeout termination handle| Method Detail |
|---|
public static ConversationEntry of(org.jboss.weld.context.api.BeanStore beanStore,
ConversationImpl conversation,
java.util.concurrent.Future<?> terminationHandle)
cid - The conversation IDterminationHandle - The timeout termination handle
public boolean cancelTermination()
public void destroy()
public 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 ConversationImpl getConversation()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||