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 int
static final int
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
int
The 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.int
hashCode()
boolean
Whether the separate cleanup services will be enabled.void
setCleanupBatchSize
(int cleanupBatchSize) The quantity of transition cleanups to attempt at one time.void
setEnabled
(boolean enabled) Whether the separate cleanup services will be enabled.void
setEvaluationWindow
(Duration evaluationWindow) The amount of time beyond which active items will no longer be evaluated for completion.void
setMaxCleanupIntervalMillis
(Duration maxCleanupIntervalMillis) The max amount of pause time between completed transition cleanup attempts.void
setMinCleanupIntervalMillis
(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 thanmaxCleanupIntervalMillis
to 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 detectingChangeSummaryGroup
andChangeDeploy
status upon everyChangeSummary
completion 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 thanmaxCleanupIntervalMillis
to 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 detectingChangeSummaryGroup
andChangeDeploy
status upon everyChangeSummary
completion 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
-