Class OptimizedSessionPersistedObjectAnalyzer
- java.lang.Object
 - 
- org.apache.tapestry5.http.internal.services.OptimizedSessionPersistedObjectAnalyzer
 
 
- 
- All Implemented Interfaces:
 SessionPersistedObjectAnalyzer<OptimizedSessionPersistedObject>
public class OptimizedSessionPersistedObjectAnalyzer extends Object implements SessionPersistedObjectAnalyzer<OptimizedSessionPersistedObject>
 
- 
- 
Constructor Summary
Constructors Constructor Description OptimizedSessionPersistedObjectAnalyzer() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckAndResetDirtyState(OptimizedSessionPersistedObject sessionPersistedObject)Atomically check and reset the dirty state of the session persisted object. 
 - 
 
- 
- 
Constructor Detail
- 
OptimizedSessionPersistedObjectAnalyzer
public OptimizedSessionPersistedObjectAnalyzer()
 
 - 
 
- 
Method Detail
- 
checkAndResetDirtyState
public boolean checkAndResetDirtyState(OptimizedSessionPersistedObject sessionPersistedObject)
Description copied from interface:SessionPersistedObjectAnalyzerAtomically check and reset the dirty state of the session persisted object. The implementer should take consideration for the fact that session attributes are accessed concurrently. A naive check/set algorithm may allow changes to go un-noticed.- Specified by:
 checkAndResetDirtyStatein interfaceSessionPersistedObjectAnalyzer<OptimizedSessionPersistedObject>- Parameters:
 sessionPersistedObject- the session attribute (never null)- Returns:
 - true if the object needs to be re-stored into the session
 
 
 - 
 
 -