Class ExecutionProperties
java.lang.Object
com.broadleafcommerce.workflow.service.ExecutionProperties
@ConfigurationProperties(prefix="broadleaf.workflow.service")
public class ExecutionProperties
extends Object
Properties related to the configuration of the service environment for runtime execution of
workflows.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe type of binder used for messaging.longMaximum interval between polling attempts for workflows.intSide effects store state for the workflow.longMinimum interval between polling attempts for workflows.longAmount of time to wait before polling again when a message is nacked because there are currently no processing threads available.longTimeout for a workflow that appears to be non-active.longMaximum amount of time (in milliseconds) that the system will wait to acquire a processor before giving up and rejecting the initiating message.intThe number of concurrent threads processing workflows on a given replica of WorkflowServices.longThe retention period (in milliseconds) for completed or failed workflows.inthashCode()voidsetBinderType(String binderType) The type of binder used for messaging.voidsetMaxPollInterval(long maxPollInterval) Maximum interval between polling attempts for workflows.voidsetMaxSideEffectCount(int maxSideEffectCount) Side effects store state for the workflow.voidsetMinPollInterval(long minPollInterval) Minimum interval between polling attempts for workflows.voidsetNackDelay(long nackDelay) Amount of time to wait before polling again when a message is nacked because there are currently no processing threads available.voidsetNonActiveWorkflowTimeout(long nonActiveWorkflowTimeout) Timeout for a workflow that appears to be non-active.voidsetProcessorAcquireTimeout(long processorAcquireTimeout) Maximum amount of time (in milliseconds) that the system will wait to acquire a processor before giving up and rejecting the initiating message.voidsetProcessorCount(int processorCount) The number of concurrent threads processing workflows on a given replica of WorkflowServices.voidsetRetentionPeriod(long retentionPeriod) The retention period (in milliseconds) for completed or failed workflows.toString()
-
Constructor Details
-
ExecutionProperties
public ExecutionProperties()
-
-
Method Details
-
getProcessorCount
public int getProcessorCount()The number of concurrent threads processing workflows on a given replica of WorkflowServices. The default is 5. -
getProcessorAcquireTimeout
public long getProcessorAcquireTimeout()Maximum amount of time (in milliseconds) that the system will wait to acquire a processor before giving up and rejecting the initiating message. The default is 10000 ms (10 seconds). -
getMaxSideEffectCount
public int getMaxSideEffectCount()Side effects store state for the workflow. Side effects store a range of values that include history elements and initial configuration. When a workflow exceeds this count, it results in workflow failure. The default is 10000. -
getNackDelay
public long getNackDelay()Amount of time to wait before polling again when a message is nacked because there are currently no processing threads available. SeegetProcessorCount(). The default is 5000 ms (5 seconds). -
getMaxPollInterval
public long getMaxPollInterval()Maximum interval between polling attempts for workflows. The default is 180000 ms (180 seconds). -
getMinPollInterval
public long getMinPollInterval()Minimum interval between polling attempts for workflows. The default is 120000 ms (120 seconds). -
getNonActiveWorkflowTimeout
public long getNonActiveWorkflowTimeout()Timeout for a workflow that appears to be non-active. A non-active workflow is one that is in PROCESSING status, but has not registered a lastStepTimeout (i.e. is null). The default is 180000 ms (180 seconds). -
getRetentionPeriod
public long getRetentionPeriod()The retention period (in milliseconds) for completed or failed workflows. The default is 90 days. -
getBinderType
The type of binder used for messaging. Default is `kafka`. -
setProcessorCount
public void setProcessorCount(int processorCount) The number of concurrent threads processing workflows on a given replica of WorkflowServices. The default is 5. -
setProcessorAcquireTimeout
public void setProcessorAcquireTimeout(long processorAcquireTimeout) Maximum amount of time (in milliseconds) that the system will wait to acquire a processor before giving up and rejecting the initiating message. The default is 10000 ms (10 seconds). -
setMaxSideEffectCount
public void setMaxSideEffectCount(int maxSideEffectCount) Side effects store state for the workflow. Side effects store a range of values that include history elements and initial configuration. When a workflow exceeds this count, it results in workflow failure. The default is 10000. -
setNackDelay
public void setNackDelay(long nackDelay) Amount of time to wait before polling again when a message is nacked because there are currently no processing threads available. SeegetProcessorCount(). The default is 5000 ms (5 seconds). -
setMaxPollInterval
public void setMaxPollInterval(long maxPollInterval) Maximum interval between polling attempts for workflows. The default is 180000 ms (180 seconds). -
setMinPollInterval
public void setMinPollInterval(long minPollInterval) Minimum interval between polling attempts for workflows. The default is 120000 ms (120 seconds). -
setNonActiveWorkflowTimeout
public void setNonActiveWorkflowTimeout(long nonActiveWorkflowTimeout) Timeout for a workflow that appears to be non-active. A non-active workflow is one that is in PROCESSING status, but has not registered a lastStepTimeout (i.e. is null). The default is 180000 ms (180 seconds). -
setRetentionPeriod
public void setRetentionPeriod(long retentionPeriod) The retention period (in milliseconds) for completed or failed workflows. The default is 90 days. -
setBinderType
The type of binder used for messaging. Default is `kafka`. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-