JwsContext.setMaxIdleTime(String) Method

Sets the time (in seconds) that the conversation can remain idle before finishing due to client inactivity.

# Syntax

    public void setMaxIdleTime(String duration)

# Parameters

duration

The number of seconds the conversation can remain idle before it will expire.

# Return Value

None.

# Exceptions

IllegalStateException

Thrown if the method is called from a service instance that is not conversational.

IllegalArgumentException

Thrown to indicate that a method has been passed an illegal or inappropriate argument.

# Remarks

Conversation idle time is the amount of time that can pass between incoming messages before the service instance is finished due to client inactivity. You can initialize a conversation's idle time to a default through the setting given at the top of the JWS file, but each instance can be set to a different idle time value through the setMaxIdleTime method.

To disable idle time expiration, set the maximum idle time value to zero.

Related Topics

JwsContext.resetIdleTime() Method

JwsContext.setMaxIdleTime(long) Method

JwsContext.getMaxIdleTime() Method

Managing Conversation Lifetime