public class ConversationImpl extends Object implements ManagedConversation, Serializable
| Constructor and Description |
|---|
ConversationImpl(BeanManagerImpl manager) |
| Modifier and Type | Method and Description |
|---|---|
void |
begin() |
void |
begin(String id) |
void |
end() |
String |
getId() |
long |
getLastUsed()
Gets the last time the conversation was used (for data access)
|
long |
getTimeout() |
boolean |
isContextActive() |
boolean |
isTransient() |
boolean |
lock(long timeout)
Attempts to lock the conversation for exclusive usage
|
void |
setTimeout(long timeout) |
String |
toString() |
void |
touch()
Touches the managed conversation, updating the "last used" timestamp
|
boolean |
unlock()
Attempts to unlock the conversation
|
@Inject public ConversationImpl(BeanManagerImpl manager)
public void begin()
begin in interface Conversationpublic void begin(String id)
begin in interface Conversationpublic void end()
end in interface Conversationpublic String getId()
getId in interface Conversationpublic long getTimeout()
getTimeout in interface Conversationpublic void setTimeout(long timeout)
setTimeout in interface Conversationpublic boolean isTransient()
isTransient in interface Conversationpublic long getLastUsed()
ManagedConversationgetLastUsed in interface ManagedConversationpublic void touch()
ManagedConversationtouch in interface ManagedConversationpublic boolean lock(long timeout)
ManagedConversationlock in interface ManagedConversationtimeout - The time in milliseconds to wait on the lockpublic boolean unlock()
ManagedConversationunlock in interface ManagedConversationpublic boolean isContextActive()
Copyright © 2016. All Rights Reserved.