public interface ManagedConversation extends Conversation
Provides management operations for conversations, including locking, and expiration management.
ConversationContext
Modifier and Type | Method and Description |
---|---|
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
|
begin, begin, end, getId, getTimeout, isTransient, setTimeout
boolean unlock()
ContextNotActiveException
- if the conversation context is not activeboolean lock(long timeout)
timeout
- The time in milliseconds to wait on the lockContextNotActiveException
- if the conversation context is not activelong getLastUsed()
ContextNotActiveException
- if the conversation context is not activevoid touch()
ContextNotActiveException
- if the conversation context is not activeCopyright © 2017 JBoss by Red Hat. All rights reserved.