Package javax.enterprise.context
Interface Conversation
-
public interface Conversation
Defines the conversation instance contract for using in theConversationScoped
webbeans components.Please see the 8.5.4 Conversation context lifecycle of the specification.
- See Also:
ConversationScoped
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
begin()
Starts new conversation.void
begin(java.lang.String id)
Starts new conversation with the given id.void
end()
Ends of the conversation.java.lang.String
getId()
Gets conversation id.long
getTimeout()
Returns conversation time out.boolean
isTransient()
void
setTimeout(long milliseconds)
Sets conversation timeout in ms.
-
-
-
Method Detail
-
begin
void begin()
Starts new conversation.
-
begin
void begin(java.lang.String id)
Starts new conversation with the given id.- Parameters:
id
- conversation id.
-
end
void end()
Ends of the conversation.
-
isTransient
boolean isTransient()
- Returns:
true
if conversation is transient,false
if it is a long running conversation.
-
getId
java.lang.String getId()
Gets conversation id.- Returns:
- conversation id
-
getTimeout
long getTimeout()
Returns conversation time out.- Returns:
- conversation timeout
-
setTimeout
void setTimeout(long milliseconds)
Sets conversation timeout in ms.- Parameters:
milliseconds
- timeout of the conversation
-
-