Package javax.enterprise.context
Interface Conversation
-
public interface ConversationDefines the conversation instance contract for using in theConversationScopedwebbeans 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 voidbegin()Starts new conversation.voidbegin(java.lang.String id)Starts new conversation with the given id.voidend()Ends of the conversation.java.lang.StringgetId()Gets conversation id.longgetTimeout()Returns conversation time out.booleanisTransient()voidsetTimeout(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:
trueif conversation is transient,falseif 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
-
-