From 58e962a55b535213e7c7a74590c4028569c7ce42 Mon Sep 17 00:00:00 2001 From: Julien Ponge Date: Mon, 18 Mar 2024 15:18:53 +0100 Subject: [PATCH] Upgrade to Mutiny 2.6.0 with JCTools --- pom.xml | 6 +++--- .../messaging/providers/extension/MediatorManager.java | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pom.xml b/pom.xml index 71425b6d7a..757b8758ff 100644 --- a/pom.xml +++ b/pom.xml @@ -82,7 +82,7 @@ 1.12.4 - 2.5.5 + 2.6.0 2.32.0 2.15.1 @@ -93,9 +93,9 @@ 1.31.0-alpha 1.21.0-alpha - 3.8.0 + 3.12.0 3.0.0 - 1.0.0 + 1.1.0 1.19.7 diff --git a/smallrye-reactive-messaging-provider/src/main/java/io/smallrye/reactive/messaging/providers/extension/MediatorManager.java b/smallrye-reactive-messaging-provider/src/main/java/io/smallrye/reactive/messaging/providers/extension/MediatorManager.java index b7d3293c1f..2d8858c18c 100644 --- a/smallrye-reactive-messaging-provider/src/main/java/io/smallrye/reactive/messaging/providers/extension/MediatorManager.java +++ b/smallrye-reactive-messaging-provider/src/main/java/io/smallrye/reactive/messaging/providers/extension/MediatorManager.java @@ -18,7 +18,7 @@ import org.eclipse.microprofile.reactive.messaging.Incoming; import org.eclipse.microprofile.reactive.messaging.Outgoing; -import io.smallrye.mutiny.helpers.queues.Queues; +import io.smallrye.mutiny.infrastructure.Infrastructure; import io.smallrye.reactive.messaging.*; import io.smallrye.reactive.messaging.EmitterConfiguration; import io.smallrye.reactive.messaging.PublisherDecorator; @@ -114,12 +114,12 @@ private int getWorkerMaxConcurrency(MediatorConfiguration configuration) { String poolName = configuration.getWorkerPoolName(); // if the poll name is null we are on the default worker pool, set the default concurrent requests if (poolName == null) { - return Queues.BUFFER_S; + return Infrastructure.getBufferSizeS(); } String concurrencyConfigKey = WORKER_CONFIG_PREFIX + "." + poolName + "." + WORKER_CONCURRENCY; Optional concurrency = configInstance.get().getOptionalValue(concurrencyConfigKey, Integer.class); // Fallback to the default concurrent requests if setting is not found - return concurrency.orElse(Queues.BUFFER_S); + return concurrency.orElse(Infrastructure.getBufferSizeS()); } public Map getIncomingConcurrency(MediatorConfiguration configuration) {