Interface BuildExpiryBean

All Known Implementing Classes:
BuildExpiryBeanImpl

public interface BuildExpiryBean
A bean that manages the build expiry process
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull ExpiryStatus
     
    @NotNull Future<Long>
    Triggers build expiry process, which loops through all plans and expires their builds.
  • Method Details

    • triggerBuildExpiry

      @NotNull @NotNull Future<Long> triggerBuildExpiry()
      Triggers build expiry process, which loops through all plans and expires their builds. Build expiry is guaranteed to only run one at a time. Any request to this method when already running will be ignored and will return the future object containing result of the already running process.
      Returns:
      a future reference for number of build results affected by the expiry process
    • getStatus

      @NotNull @NotNull ExpiryStatus getStatus()