All Known Implementing Classes:
BroadcastDistributionRule, DropRule, ForeverBroadcastDistributionRule, ForeverDropRule, ForeverLoadRule, IntervalBroadcastDistributionRule, IntervalDropRule, IntervalLoadRule, LoadRule, PeriodBroadcastDistributionRule, PeriodDropBeforeRule, PeriodDropRule, PeriodLoadRule

public interface Rule
Retention rule that governs retention and distribution of segments in a cluster.
  • Method Details

    • getType

      String getType()
    • appliesTo

      boolean appliesTo(DataSegment segment, org.joda.time.DateTime referenceTimestamp)
    • appliesTo

      boolean appliesTo(org.joda.time.Interval interval, org.joda.time.DateTime referenceTimestamp)
    • run

      void run(DataSegment segment, SegmentActionHandler segmentHandler)