Class WorkflowConfigurationDefaults
java.lang.Object
io.axoniq.framework.workflow.configuration.WorkflowConfigurationDefaults
- All Implemented Interfaces:
ConfigurationEnhancer
@Internal
@RegistrationScope(scope=CURRENT)
public class WorkflowConfigurationDefaults
extends Object
implements ConfigurationEnhancer
Defaults for workflow configuration.
- Since:
- 5.4.0
- Author:
- Simon Zambrovski
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intOrder for this enhancer.static final StringName of the dedicated executor service component used for workflow-body work and workflow-event publication. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidenhance(ComponentRegistry componentRegistry) intorder()Returns the relative order this enhancer should be invoked in, compared to other instances.
-
Field Details
-
WORKFLOW_ENGINE_EXECUTOR
Name of the dedicated executor service component used for workflow-body work and workflow-event publication.The default uses a virtual thread per task. A bounded future-resolution wait therefore blocks only its workflow task, not an event processor or another shared executor. Applications that replace this component should retain that isolation or size their executor for the configured resolver timeout.
- See Also:
-
WORKFLOW_DEFAULTS_ENHANCER_ORDER
public static final int WORKFLOW_DEFAULTS_ENHANCER_ORDEROrder for this enhancer.Enhancer math: register the tag-resolver decorator before event sourcing creates the event store.
- See Also:
-
-
Constructor Details
-
WorkflowConfigurationDefaults
public WorkflowConfigurationDefaults()
-
-
Method Details
-
enhance
Description copied from interface:ConfigurationEnhancer- Specified by:
enhancein interfaceConfigurationEnhancer- Parameters:
componentRegistry- The registry instance to enhance.
-
order
public int order()Description copied from interface:ConfigurationEnhancerReturns the relative order this enhancer should be invoked in, compared to other instances.Use lower (negative) values for enhancers providing sensible defaults, and higher values for enhancers that should be able to override values potentially previously set. Defaults to
0when not set.- Specified by:
orderin interfaceConfigurationEnhancer- Returns:
- The order in which this enhancer should be invoked.
-