Edytuj

Udostępnij za pośrednictwem


ChronologicalEvictionStrategy Class

Definition

Eviction strategy that evicts data based off of age.

public class ChronologicalEvictionStrategy : Orleans.Providers.Streams.Common.IEvictionStrategy
type ChronologicalEvictionStrategy = class
    interface IEvictionStrategy
Public Class ChronologicalEvictionStrategy
Implements IEvictionStrategy
Inheritance
ChronologicalEvictionStrategy
Implements

Constructors

ChronologicalEvictionStrategy(ILogger, TimePurgePredicate, ICacheMonitor, Nullable<TimeSpan>)

Initializes a new instance of the ChronologicalEvictionStrategy class.

Fields

inUseBuffers

Buffers which are currently in use in the cache Protected for test purposes

Properties

OnPurged

Called with the newest item in the cache and last item purged after a cache purge has run. For ordered reliable queues we shouldn't need to notify on every purged event, only on the last event of every set of events that get purged.

PurgeObservable

Gets the IPurgeObservable, which is implemented by the cache to do purge related actions and invoked by the eviction strategy.

Methods

OnBlockAllocated(FixedSizeBuffer)

Method which should be called when data adapter allocated a new block

PerformPurge(DateTime)

Method which should be called when pulling agent try to do a purge on the cache

ShouldPurge(CachedMessage, CachedMessage, DateTime)

Given a cached message, indicates whether it should be purged from the cache.

Applies to