VMware Tanzu GemFire Native C++ Reference 10.3.0
|
Defines common statistical information for both the region and its entries. More...
#include <CacheStatistics.hpp>
Public Member Functions | |
virtual std::chrono::system_clock::time_point | getLastAccessedTime () const |
For an entry, returns the last time it was accessed via Region.get . More... | |
virtual std::chrono::system_clock::time_point | getLastModifiedTime () const |
For an entry, returns the time that the entry's value was last modified. More... | |
Defines common statistical information for both the region and its entries.
All of these methods may throw a CacheClosedException, RegionDestroyedException, or EntryDestroyedException.
|
virtual |
For an entry, returns the last time it was accessed via Region.get
.
For a region, returns the last time any of its entries or the entries of its subregions were accessed with Region.get
. Any modifications will also update the lastAccessedTime, so lastAccessedTime
is always >= lastModifiedTime
. The lastAccessedTime
on a region is propagated upward to parent regions, transitively, to the the root region.
|
virtual |
For an entry, returns the time that the entry's value was last modified.
For a region, returns the last time any of the region's entries' values or the values in subregions' entries were modified. The modification may have been initiated locally, or it may have been an update distributed from another cache. It may also have been a new value provided by a loader. The modification time on a region is propagated upward to parent regions, transitively, to the root region.
Entry and subregion creation will update the modification time on a region, but destroy
, destroyRegion
, invalidate
, and invalidateRegion
do not update the modification time.