Skip to content

Commit 9cb517b

Browse files
committed
Merge branch 'master' into feature/fix-bugs
2 parents 92d9418 + 30f901d commit 9cb517b

File tree

5 files changed

+25
-6
lines changed

5 files changed

+25
-6
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# Changelog
22

3+
## [v5.6.2](https://github.com/reactive-commons/reactive-commons-java/tree/v5.6.2) (2025-09-10)
4+
5+
[Full Changelog](https://github.com/reactive-commons/reactive-commons-java/compare/v5.6.2-beta.1...v5.6.2)
6+
7+
**Merged pull requests:**
8+
9+
- fix\(queueType\): Leave by default the queueType defined in virtualhost at server level [\#150](https://github.com/reactive-commons/reactive-commons-java/pull/150) ([juancgalvis](https://github.com/juancgalvis))
10+
11+
## [v5.6.2-beta.1](https://github.com/reactive-commons/reactive-commons-java/tree/v5.6.2-beta.1) (2025-09-08)
12+
13+
[Full Changelog](https://github.com/reactive-commons/reactive-commons-java/compare/v5.6.1...v5.6.2-beta.1)
14+
15+
**Closed issues:**
16+
17+
- Add support for quorum queues in RabbitMQ connections [\#148](https://github.com/reactive-commons/reactive-commons-java/issues/148)
18+
319
## [v5.6.1](https://github.com/reactive-commons/reactive-commons-java/tree/v5.6.1) (2025-09-03)
420

521
[Full Changelog](https://github.com/reactive-commons/reactive-commons-java/compare/v5.6.0...v5.6.1)

async/async-rabbit/src/main/java/org/reactivecommons/async/rabbit/communications/TopologyCreator.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class TopologyCreator {
2424

2525
public TopologyCreator(Sender sender, String queueType) {
2626
this.sender = sender;
27-
this.queueType = queueType != null ? queueType : "classic";
27+
this.queueType = queueType;
2828
}
2929

3030
public Mono<AMQP.Exchange.DeclareOk> declare(ExchangeSpecification exchange) {
@@ -90,14 +90,17 @@ public Mono<AMQP.Queue.DeclareOk> declareQueue(String name, Optional<Integer> ma
9090

9191
protected QueueSpecification fillQueueType(QueueSpecification specification) {
9292
String resolvedQueueType = this.queueType;
93-
if (specification.isAutoDelete() || specification.isExclusive()) {
93+
if ("quorum".equals(resolvedQueueType)
94+
&& (specification.isAutoDelete() || specification.isExclusive())) {
9495
resolvedQueueType = "classic";
9596
}
9697
Map<String, Object> args = specification.getArguments();
9798
if (args == null) {
9899
args = new HashMap<>();
99100
}
100-
args.put("x-queue-type", resolvedQueueType);
101+
if (resolvedQueueType != null) {
102+
args.put("x-queue-type", resolvedQueueType);
103+
}
101104
specification.arguments(args);
102105
return specification;
103106
}

docs/docs/reactive-commons/9-configuration-properties.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ app:
3131
enabled: true # if you want to disable this domain you can set it to false
3232
mandatory: false # if you want to enable mandatory messages, you can set it to true, this will throw an exception if the message cannot be routed to any queue
3333
brokerType: "rabbitmq" # please don't change this value
34-
queueType: classic # you can change the queue type to 'quorum' if your RabbitMQ cluster supports it
34+
queueType: null # you can set to 'classic' or to 'quorum' if your RabbitMQ cluster supports it, by default it will take the virtual host default queue type
3535
flux:
3636
maxConcurrency: 250 # max concurrency of listener flow
3737
domain:

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
version=5.6.1
1+
version=5.6.2
22
toPublish=domain-events-api,async-commons-api,async-commons,shared-starter,async-rabbit,async-commons-rabbit-standalone,async-commons-rabbit-starter,async-kafka,async-kafka-starter,async-commons-starter
33
onlyUpdater=true

starters/async-rabbit-starter/src/main/java/org/reactivecommons/async/rabbit/config/props/AsyncProps.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,6 @@ public Boolean getListenReplies() {
8383
private String brokerType = "rabbitmq";
8484

8585
@Builder.Default
86-
private String queueType = "classic"; // or "quorum"
86+
private String queueType = null; // "classic" or "quorum"
8787

8888
}

0 commit comments

Comments
 (0)