public abstract class BaseOptimizedSessionPersistedObject extends Object implements OptimizedSessionPersistedObject, Serializable
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 and Description |
---|
BaseOptimizedSessionPersistedObject() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkAndResetDirtyMarker() |
protected void |
markDirty()
Invoked by the subclass after internal state of the object changes.
|
public BaseOptimizedSessionPersistedObject()
public final boolean checkAndResetDirtyMarker()
checkAndResetDirtyMarker
in interface OptimizedSessionPersistedObject
protected final void markDirty()
5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.