javax.enterprise.context
Interface Conversation


public interface Conversation

Defines the conversation instance contract for using in the ConversationScoped webbeans components.

Please see the 8.5.4 Conversation context lifecycle of the specification.

See Also:
ConversationScoped

Method Summary
 void begin()
          Starts new conversation.
 void begin(String id)
          Starts new conversation with the given id.
 void end()
          Ends of the conversation.
 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(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

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


Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.