Interface BuildExpiryBean
-
- All Known Implementing Classes:
BuildExpiryBeanImpl
public interface BuildExpiryBeanA bean that manages the build expiry process
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull ExpiryStatusgetStatus()@NotNull Future<Long>triggerBuildExpiry()Triggers build expiry process, which loops through all plans and expires their builds.
-
-
-
Method Detail
-
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()
-
-