JwsContext.getCurrentAge() Method

Gets the age of the current conversation in seconds.

# Syntax

    public long getCurrentAge()

# Parameters

None.

# Return Value

The number of seconds that have passed since the conversation was started.

# Exceptions

IllegalStateException

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

# Remarks

None.

Related Topics

JwsContext.setMaxAge(Date) Method

JwsContext.setMaxAge(String) Method

JwsContext.getMaxAge() Method

Managing Conversation Lifetime