CompactionTrigger Delegate

Definition

Defines a condition based on CompactionMessageIndex metrics used by a CompactionStrategy to determine when to trigger compaction and when the target compaction threshold has been met.

public delegate bool CompactionTrigger(CompactionMessageIndex index);
type CompactionTrigger = delegate of CompactionMessageIndex -> bool
Public Delegate Function CompactionTrigger(index As CompactionMessageIndex) As Boolean 

Parameters

index
CompactionMessageIndex

An index over conversation messages that provides group, token, message, and turn metrics.

Return Value

true to indicate the condition has been met; otherwise false.

Applies to