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 javax.enterprise.context.Conversationpublic void begin(String id)
begin in interface javax.enterprise.context.Conversationpublic void end()
end in interface javax.enterprise.context.Conversationpublic String getId()
getId in interface javax.enterprise.context.Conversationpublic long getTimeout()
getTimeout in interface javax.enterprise.context.Conversationpublic void setTimeout(long timeout)
setTimeout in interface javax.enterprise.context.Conversationpublic boolean isTransient()
isTransient in interface javax.enterprise.context.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.