|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ManagedConversation
Provides management operations for conversations, including locking, and expiration management.
ConversationContext
Method Summary | |
---|---|
long |
getLastUsed()
Gets the last time the conversation was used (for data access) |
boolean |
lock(long timeout)
Attempts to lock the conversation for exclusive usage |
void |
touch()
Touches the managed conversation, updating the "last used" timestamp |
boolean |
unlock()
Attempts to unlock the conversation |
Methods inherited from interface javax.enterprise.context.Conversation |
---|
begin, begin, end, getId, getTimeout, isTransient, setTimeout |
Method Detail |
---|
boolean unlock()
javax.enterprise.context.ContextNotActiveException
- if the conversation context is not
activeboolean lock(long timeout)
timeout
- The time in milliseconds to wait on the lock
InterruptedException
- if the lock operation was unsuccessful * @throws
javax.enterprise.context.ContextNotActiveException
- if the conversation context is not
activelong getLastUsed()
javax.enterprise.context.ContextNotActiveException
- if the conversation context is not
activevoid touch()
javax.enterprise.context.ContextNotActiveException
- if the conversation context is not
active
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |