Class CompletionCleanupProperties
java.lang.Object
com.broadleafcommerce.sandbox.service.cleanup.CompletionCleanupProperties
@ConfigurationProperties("broadleaf.transition.cleanup")
public class CompletionCleanupProperties
extends Object
Configuration related to batch completion of transition related artifacts once all
ChangeSummary instances have completed transition. Generally relates to
ChangeDeploy, ChangeSummaryGroup, and Sandbox.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanintThe quantity of transition cleanups to attempt at one time.The amount of time beyond which active items will no longer be evaluated for completion.The max amount of pause time between completed transition cleanup attempts.The min amount of pause time between completed transition cleanup attempts.inthashCode()booleanWhether the separate cleanup services will be enabled.voidsetCleanupBatchSize(int cleanupBatchSize) The quantity of transition cleanups to attempt at one time.voidsetEnabled(boolean enabled) Whether the separate cleanup services will be enabled.voidsetEvaluationWindow(Duration evaluationWindow) The amount of time beyond which active items will no longer be evaluated for completion.voidsetMaxCleanupIntervalMillis(Duration maxCleanupIntervalMillis) The max amount of pause time between completed transition cleanup attempts.voidsetMinCleanupIntervalMillis(Duration minCleanupIntervalMillis) The min amount of pause time between completed transition cleanup attempts.toString()
-
Field Details
-
CLEANUP_INTERVAL_MAX_DEFAULT
public static final int CLEANUP_INTERVAL_MAX_DEFAULT- See Also:
-
CLEANUP_INTERVAL_MIN_DEFAULT
public static final int CLEANUP_INTERVAL_MIN_DEFAULT- See Also:
-
CLEANUP_BATCH_SIZE_DEFAULT
public static final int CLEANUP_BATCH_SIZE_DEFAULT- See Also:
-
CLEANUP_BATCH_EVALUATION_WINDOW_DEFAULT
public static final int CLEANUP_BATCH_EVALUATION_WINDOW_DEFAULT- See Also:
-
-
Constructor Details
-
CompletionCleanupProperties
public CompletionCleanupProperties()
-
-
Method Details
-
getMaxCleanupIntervalMillis
The max amount of pause time between completed transition cleanup attempts. Default is 10000 millis. -
getMinCleanupIntervalMillis
The min amount of pause time between completed transition cleanup attempts. Default is 3000 millis. This value always wins, and you can set this value equal to or greater thanmaxCleanupIntervalMillisto achieve a constant, non-randomized value. -
getCleanupBatchSize
public int getCleanupBatchSize()The quantity of transition cleanups to attempt at one time. Should be somewhat conservative to avoid overworking the database or causing the transaction log to spiral out of control. Default is 50. -
getEvaluationWindow
The amount of time beyond which active items will no longer be evaluated for completion. This measure avoids infinite evaluation of errant, stuck, or defunct items. Without this, the queue of items to check might grow to a ponderous level and interfere with timely processing of other valid items. Default is 30 days. -
isEnabled
public boolean isEnabled()Whether the separate cleanup services will be enabled. If false, the prior, slower process of detectingChangeSummaryGroupandChangeDeploystatus upon everyChangeSummarycompletion will be used. Note, the prior process is deprecated and will be removed in a subsequent release. Default is true. -
setMaxCleanupIntervalMillis
The max amount of pause time between completed transition cleanup attempts. Default is 10000 millis. -
setMinCleanupIntervalMillis
The min amount of pause time between completed transition cleanup attempts. Default is 3000 millis. This value always wins, and you can set this value equal to or greater thanmaxCleanupIntervalMillisto achieve a constant, non-randomized value. -
setCleanupBatchSize
public void setCleanupBatchSize(int cleanupBatchSize) The quantity of transition cleanups to attempt at one time. Should be somewhat conservative to avoid overworking the database or causing the transaction log to spiral out of control. Default is 50. -
setEvaluationWindow
The amount of time beyond which active items will no longer be evaluated for completion. This measure avoids infinite evaluation of errant, stuck, or defunct items. Without this, the queue of items to check might grow to a ponderous level and interfere with timely processing of other valid items. Default is 30 days. -
setEnabled
public void setEnabled(boolean enabled) Whether the separate cleanup services will be enabled. If false, the prior, slower process of detectingChangeSummaryGroupandChangeDeploystatus upon everyChangeSummarycompletion will be used. Note, the prior process is deprecated and will be removed in a subsequent release. Default is true. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-