Class SandboxNotificationPruneProperties
java.lang.Object
com.broadleafcommerce.sandbox.service.autoconfigure.SandboxNotificationPruneProperties
@Validated
@ConfigurationProperties("broadleaf.sandbox.tracking.notification.prune")
public class SandboxNotificationPruneProperties
extends Object
Properties configuring behavior of
SandboxNotificationPruneService
and
SandboxNotificationPruneRepository
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
int
The default cleanup process deletes entities in batches, and this property can be used to configure the batch size.Dormant NotificationStates created at a time older than the current time (the time that the scheduled job is handled) minus this duration will be pruned from the datastore.This is the amount of time that the cleanup job will pause in between each delete batch.int
hashCode()
boolean
Whether pruning of dormant notification states is enabled.void
setDeleteBatchSize
(int deleteBatchSize) The default cleanup process deletes entities in batches, and this property can be used to configure the batch size.void
setEnabled
(boolean enabled) Whether pruning of dormant notification states is enabled.void
setOutdatedDataAgeCutoff
(Duration outdatedDataAgeCutoff) Dormant NotificationStates created at a time older than the current time (the time that the scheduled job is handled) minus this duration will be pruned from the datastore.void
setPauseBetweenDeleteBatches
(Duration pauseBetweenDeleteBatches) This is the amount of time that the cleanup job will pause in between each delete batch.toString()
-
Constructor Details
-
SandboxNotificationPruneProperties
public SandboxNotificationPruneProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Whether pruning of dormant notification states is enabled. Enabling this is highly recommended to prevent buildup in the datastore. -
getOutdatedDataAgeCutoff
Dormant NotificationStates created at a time older than the current time (the time that the scheduled job is handled) minus this duration will be pruned from the datastore. This value should be set low enough to prevent excessive build-up of dormant states in the system, but also high enough to allow most change summary lifecycles to complete within the allotted time. The default value is set to 30 days, assuming that most change summaries are created and either reverted or fully deployed to production within that time. -
getDeleteBatchSize
public int getDeleteBatchSize()The default cleanup process deletes entities in batches, and this property can be used to configure the batch size. This can be helpful to avoid large transactions that affect a huge number of rows. -
getPauseBetweenDeleteBatches
This is the amount of time that the cleanup job will pause in between each delete batch. Useful to give the database some relief during execution. -
setEnabled
public void setEnabled(boolean enabled) Whether pruning of dormant notification states is enabled. Enabling this is highly recommended to prevent buildup in the datastore. -
setOutdatedDataAgeCutoff
Dormant NotificationStates created at a time older than the current time (the time that the scheduled job is handled) minus this duration will be pruned from the datastore. This value should be set low enough to prevent excessive build-up of dormant states in the system, but also high enough to allow most change summary lifecycles to complete within the allotted time. The default value is set to 30 days, assuming that most change summaries are created and either reverted or fully deployed to production within that time. -
setDeleteBatchSize
public void setDeleteBatchSize(int deleteBatchSize) The default cleanup process deletes entities in batches, and this property can be used to configure the batch size. This can be helpful to avoid large transactions that affect a huge number of rows. -
setPauseBetweenDeleteBatches
This is the amount of time that the cleanup job will pause in between each delete batch. Useful to give the database some relief during execution. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-