|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tapestry5.BaseOptimizedSessionPersistedObject
public abstract class BaseOptimizedSessionPersistedObject
Base implementation of
OptimizedSessionPersistedObject
. Subclasses
should invoke markDirty()
after the internal state of the object changes.
Due to the concurrent nature of session attributes it's important that markDirty occurs after the object has been changed. If the change occurs before the object has been mutated it's possible that another thread may re-store the object before the changes are actually made!
Constructor Summary | |
---|---|
BaseOptimizedSessionPersistedObject()
|
Method Summary | |
---|---|
boolean |
checkAndResetDirtyMarker()
|
protected void |
markDirty()
Invoked by the subclass after internal state of the object changes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BaseOptimizedSessionPersistedObject()
Method Detail |
---|
public final boolean checkAndResetDirtyMarker()
checkAndResetDirtyMarker
in interface OptimizedSessionPersistedObject
protected final void markDirty()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |