TimePurgePredicate.ShouldPurgFromTime(TimeSpan, TimeSpan) Method

Definition

Checks to see if the message should be purged. Message should be purged if its relative age is greater than maxRelativeMessageAge and has been in the cache longer than the minTimeInCache.

public virtual bool ShouldPurgFromTime (TimeSpan timeInCache, TimeSpan relativeAge);
abstract member ShouldPurgFromTime : TimeSpan * TimeSpan -> bool
override this.ShouldPurgFromTime : TimeSpan * TimeSpan -> bool
Public Overridable Function ShouldPurgFromTime (timeInCache As TimeSpan, relativeAge As TimeSpan) As Boolean

Parameters

timeInCache
TimeSpan

amount of time message has been in this cache

relativeAge
TimeSpan

Age of message relative to the most recent events read

Returns

Applies to