IT. Expert System.

Java Enterprise Edition (EE)

Conversation


javax.enterprise.context
Interface Conversation

public interface Conversation

Allows the application to manage the conversation context by marking the current conversation as transient or long-running, specifying a conversation identifier, or setting the conversation timeout.

An instance may be injected:

 @Inject Conversation conversation;
 

The conversation timeout is a hint to the container that a conversation should not be destroyed if it has been active within the last given interval in milliseconds.

Author:
Pete Muir, Gavin King
See Also:
@ConversationScoped

Method Summary
 void begin()
          Mark the current transient conversation long-running.
 void begin(java.lang.String id)
          Mark the current transient conversation long-running, with a specified identifier.
 void end()
          Marks the current long-running conversation transient.
 java.lang.String getId()
          Get the identifier of the current long-running conversation.
 long getTimeout()
          Get the timeout of the current conversation.
 boolean isTransient()
          Determine if the conversation is marked transient or long-running.
 void setTimeout(long milliseconds)
          Set the timeout of the current conversation.
 

Method Detail

begin

void begin()

Mark the current transient conversation long-running. A conversation identifier is generated by the container.

Throws:
IllegalStateException - if the current conversation is already marked long-running.

begin

void begin(java.lang.String id)

Mark the current transient conversation long-running, with a specified identifier.

Throws:
IllegalStateException - if the current conversation is already marked long-running.
java.lang.IllegalArgumentException - if a conversation with the specified identifier already exists.

end

void end()

Marks the current long-running conversation transient.

Throws:
IllegalStateException - if the current conversation is already marked transient.

getId

java.lang.String getId()

Get the identifier of the current long-running conversation.

Returns:
the identifier of the current long-running conversation, or a null value if the current conversation is transient.

getTimeout

long getTimeout()

Get the timeout of the current conversation.

Returns:
the current timeout in milliseconds.

setTimeout

void setTimeout(long milliseconds)

Set the timeout of the current conversation.

Parameters:
milliseconds - the new timeout in milliseconds.

isTransient

boolean isTransient()

Determine if the conversation is marked transient or long-running.

Returns:
true if the conversation is marked transient, or falseif it is marked long-running.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 570 / . Delta: 0.02818 с