Interface CompactionTrigger

All Known Implementing Classes:
CompositeCompactionTrigger, TokenCountTrigger, TurnCountTrigger
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface CompactionTrigger
Decides whether a session's active view is compacted.
Since:
2.1.0
Author:
Christian Tzolov
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Whether the view should be compacted now.
  • Method Details

    • shouldCompact

      boolean shouldCompact(CompactionRequest request)
      Whether the view should be compacted now.