JwsContext.getCurrentIdleTime() Method

Gets the number of seconds since the last activity for the conversation.

Syntax

public long getCurrentIdleTime()

Parameters

None.

Return Value

The number of seconds since the last activity affecting the conversation.

Exceptions

IllegalStateException

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

Remarks

The conversation's idle time may be the time since the last conversational activity, such as the last client request. The idle time may also be the time since JwsContext.resetIdleTime() was last called.

Related Topics

JwsContext.resetIdleTime() Method

JwsContext.setMaxIdleTime(long) Method

JwsContext.setMaxIdleTime(String) Method

JwsContext.getMaxIdleTime() Method

Managing Conversation Lifetime