Class BuildExpiryBatchProcessor

java.lang.Object
com.atlassian.bamboo.build.expiry.BuildExpiryBatchProcessor

public class BuildExpiryBatchProcessor extends Object
Processor of build result batches, applying a supplied logic to expire them. It supports strategies to optimize resources via BuildExpiryBatchProcessor.BatchProcessingPolicy.
Since:
9.5
  • Field Details

    • DEFAULT_MINIMUM_SUCCESSFUL_EXPIRY_PERCENTAGE_TO_KEEP_PROCESSING

      public static final double DEFAULT_MINIMUM_SUCCESSFUL_EXPIRY_PERCENTAGE_TO_KEEP_PROCESSING
      See Also:
  • Constructor Details

  • Method Details

    • expire

      public long expire(@NotNull @NotNull BiFunction<ResultsSummary,BuildExpiryConfig,Boolean> resultSummaryExpiry)
      Runs the expiry process and apply the given resultSummaryExpiry on each results summary found.
      Parameters:
      resultSummaryExpiry - the function that expires a results summary
      Returns:
      the number of results summaries successfully expired
    • getTotalSuccessfullyExpiredBuilds

      public long getTotalSuccessfullyExpiredBuilds()
      Returns:
      the total number of successfully expired builds