org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation
Class TimeoutExpirationEvaluator
java.lang.Object
org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.TimeoutExpirationEvaluator
- All Implemented Interfaces:
- Serializable
public class TimeoutExpirationEvaluator
- extends Object
- implements Serializable
Base implementation which doesn't implement the ConversationExpirationEvaluator
interface because
this implementation will be used by the
WindowContext
but
there is no need for implementing the whole ConversationExpirationEvaluator
interface.
- See Also:
- Serialized Form
Method Summary |
boolean |
isExpired()
Evaluates if the conversation is still valid |
void |
touch()
Marks the conversation as used |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
lastAccess
protected Date lastAccess
TimeoutExpirationEvaluator
protected TimeoutExpirationEvaluator(int timeoutInMinutes)
isExpired
public boolean isExpired()
- Evaluates if the conversation is still valid
- Returns:
- false if the conversation is valid, true otherwise
touch
public void touch()
- Marks the conversation as used
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.