Interface CompactionPlan.Builder
-
- All Known Implementing Classes:
CompactionPlanImpl.BuilderImpl
- Enclosing interface:
- CompactionPlan
public static interface CompactionPlan.Builder
- Since:
- 2.1.0
- See Also:
CompactionPlanner.PlanningParameters.createPlanBuilder()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompactionPlan.Builder
addJob(short priority, CompactionExecutorId executor, Collection<CompactableFile> group)
CompactionPlan
build()
-
-
-
Method Detail
-
addJob
CompactionPlan.Builder addJob(short priority, CompactionExecutorId executor, Collection<CompactableFile> group)
- Parameters:
priority
- This determines the order in which the job is taken off the execution queue. Larger numbers are taken off the queue first. If two jobs are on the queue, one with a priority of 4 and another with 5, then the one with 5 will be taken first.executor
- Where the job should run.group
- The files to compact.- Returns:
- this
-
build
CompactionPlan build()
-
-