org.apache.tapestry5
Interface OptimizedSessionPersistedObject

All Known Implementing Classes:
BaseOptimizedApplicationStateObject, BaseOptimizedSessionPersistedObject, ValidationTrackerImpl

public interface OptimizedSessionPersistedObject

An optional interface implemented by objects that are persisted in the Session. At the end of each request, any objects read from the session are re-stored into the session, to ensure that in-memory changes are flushed to other servers in a cluster. Objects that implement this interface are expected to track when they are dirty (have pending changes), so that the save back into the session can be avoided when not necessary.

Since:
5.1.1.0
See Also:
ImmutableSessionPersistedObject, SessionPersistedObjectAnalyzer

Method Summary
 boolean isSessionPersistedObjectDirty()
          Returns true if the object has in-memory changes.
 

Method Detail

isSessionPersistedObjectDirty

boolean isSessionPersistedObjectDirty()
Returns true if the object has in-memory changes. It is the object's responsibility to set its internal flag to false, typically by implementing HttpSessionBindingListener.

Returns:


Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.