Package io.nflow.engine.service
Class MaintenanceConfiguration.ConfigurationItem.Builder
java.lang.Object
io.nflow.engine.service.MaintenanceConfiguration.ConfigurationItem.Builder
- Enclosing class:
MaintenanceConfiguration.ConfigurationItem
Builds ConfigurationItem objects.
-
Method Summary
Modifier and TypeMethodDescriptiondone()Finish ConfigurationItem object and move back to MaintenanceConfiguration.setBatchSize(int batchSize) Set the batch size for the maintenance operation.setOlderThanPeriod(org.joda.time.ReadablePeriod olderThanPeriod) Set the time limit for the maintenance operation.setWorkflowTypes(Set<String> workflowTypes) Set the workflow types to be processed.
-
Method Details
-
setOlderThanPeriod
public MaintenanceConfiguration.ConfigurationItem.Builder setOlderThanPeriod(org.joda.time.ReadablePeriod olderThanPeriod) Set the time limit for the maintenance operation. Items older than (now - period) are processed.- Parameters:
olderThanPeriod- Time limit- Returns:
- this
-
setBatchSize
Set the batch size for the maintenance operation. Default is 1000.- Parameters:
batchSize- Number of workflows to operate on in single transaction. Typical value is 100-1000. This parameter mostly affects on performance.- Returns:
- this
-
setWorkflowTypes
public MaintenanceConfiguration.ConfigurationItem.Builder setWorkflowTypes(Set<String> workflowTypes) Set the workflow types to be processed. Default is empty, which means all types are processed.- Parameters:
workflowTypes- Workflow types to be processed.- Returns:
- this
-
done
Finish ConfigurationItem object and move back to MaintenanceConfiguration.- Returns:
- The parent MaintenanceConfiguration builder object.
-