From bdb650d49378dcd9d985a6d65bd60236864f49b6 Mon Sep 17 00:00:00 2001 From: Rodro Date: Thu, 11 Mar 2021 16:20:31 -0300 Subject: [PATCH] MULE-19259: Review default maxConcurrency for async/parallel-foreach scopes --- .../api/util/MuleSystemProperties.java | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/mule/runtime/api/util/MuleSystemProperties.java b/src/main/java/org/mule/runtime/api/util/MuleSystemProperties.java index 0789f6ecc..095954064 100644 --- a/src/main/java/org/mule/runtime/api/util/MuleSystemProperties.java +++ b/src/main/java/org/mule/runtime/api/util/MuleSystemProperties.java @@ -282,7 +282,7 @@ public final class MuleSystemProperties { /** * When set to {@code true} an application won't be able to override reserved properties such as app.name. If it * isn't set, the behaviour will depend on {@link MuleRuntimeFeature#HONOUR_RESERVED_PROPERTIES}. - * + * * @see MuleRuntimeFeature#HONOUR_RESERVED_PROPERTIES * @since 4.4.0, 4.3.1 */ @@ -291,7 +291,7 @@ public final class MuleSystemProperties { /** * When set to {@code true} the runtime will prioritize the retry policy defined in the operation over the one defined in the * connection to resolve whether the policy is async. This may affect the resolution of whether the operation is async or not. - * + * * @since 4.4.0, 4.3.1 */ public static final String HONOUR_OPERATION_RETRY_POLICY_TEMPLATE_OVERRIDE_PROPERTY = @@ -300,14 +300,14 @@ public final class MuleSystemProperties { /** * If set to true, then DW will correctly handle Splitter's exceptions, avoiding some serialization issues. Be aware that when * enabled, this can make {@code error.cause} return a different exception. For more information see DW-383. - * + * * @since 4.4.0, 4.3.1, 4.2.3 */ public static final String HANDLE_SPLITTER_EXCEPTION_PROPERTY = "mule.dw.handle_splitter_exception"; /** * If set to true, then fixed batch aggregator will only commit when a full block is processed. For more information see EE-7443 - * + * * @since 4.4.0, 4.3.1, 4.2.3 */ public static final String BATCH_FIXED_AGGREGATOR_TRANSACTION_RECORD_BUFFER_PROPERTY = @@ -315,12 +315,21 @@ public final class MuleSystemProperties { /** * If set to true, the connection exceptions will be computed to trigger alerts. - * + * * @since 4.4.0, 4.3.1 */ public static final String COMPUTE_CONNECTION_ERRORS_IN_STATS_PROPERTY = SYSTEM_PROPERTY_PREFIX + "compute.connection.errors.in.stats"; + /** + * The provided value will be used as a default for the {@code maxConcurrency} parameter for {@code async} and + * {@code parallel-foreach} scopes, and {@code scatter-gather} router. + * + * @since 4.4.0, 4.3.1 + */ + public static final String SCOPES_DEFAULT_MAX_CONCURRENCY = + SYSTEM_PROPERTY_PREFIX + "scopes.default.max.concurrency"; + /** * @return {@code true} if the {@link #TESTING_MODE_PROPERTY_NAME} property has been set (regardless of the value) */