DefaultCacheMonitor
class
Namespace: Orleans.Providers.Streams.Common
cache monitor used as a default option in GeneratorStreamprovider and MemoryStreamProvider
public class DefaultCacheMonitor : ICacheMonitorConstructors
DefaultCacheMonitor(KeyValuePair<string, object>, OrleansInstruments)Initializes a new instance of theDefaultCacheMonitorclass.DefaultCacheMonitor(CacheMonitorDimensions, OrleansInstruments)Initializes a new instance of theDefaultCacheMonitorclass.
Methods
ReportCacheSize(long)Called to report the total cache size.ReportMessageStatistics(DateTime?, DateTime?, DateTime?, long)Called to report cache status metrics.TrackCachePressureMonitorStatusChange(string, bool, double?, double?, double?)Called when the cache pressure monitor encounter a status change.TrackMemoryAllocated(int)Called when new memory is allocated by the cache.TrackMemoryReleased(int)Called when memory returned to block pool.TrackMessagesAdded(long)Called when messages are added to the cache.TrackMessagesPurged(long)Called when messages are purged from the cache.
