Touched Timestamp, Null-Safe Variant
This is the manual for older MicroStream versions (Version < 5.0).
The new documentation (Version >= 5.0) is located at:
Null-safe Lazy Reference Access
For convenience MicroStream provides Null-safe static access methods for lazy references.
These are
Lazy.get(Lazy)
Gets the lazy referenced object, loads it if required. return value:null
if the lazy reference itself isnull
otherwise the referenced objectLazy.peek(Lazy)
Get the lazy referenced object if it is loaded, no lazy loading is done. If the object has been unloaded before peek will returnnull
. return value:null
if the lazy reference itself isnull
otherwise the current reference without on-demand loadingLazy.clear(Lazy)
Clears the lazy reference if it is notnull
.
Touched Timestamp
All lazy references track the time of their last access (creation or querying) as a timestamp in milliseconds. If an instance is deemed timed out by a LazyReferenzManager its subject gets cleared.
The timestamp is currently not public accessible.
Last updated