Skip to content

Commit 583c235

Browse files
authored
fix(deps): Update deps and docs for secret filler and log when rabbit connection error (#127)
* Update docs for secret filler and log when rabbit connection error * Update deps
1 parent 775eac2 commit 583c235

File tree

4 files changed

+14
-11
lines changed

4 files changed

+14
-11
lines changed

Diff for: build.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ buildscript {
1212

1313
plugins {
1414
id 'jacoco'
15-
id 'org.sonarqube' version '6.0.0.5145'
16-
id 'org.springframework.boot' version '3.4.0' apply false
15+
id 'org.sonarqube' version '6.0.1.5171'
16+
id 'org.springframework.boot' version '3.4.1' apply false
1717
id 'io.github.gradle-nexus.publish-plugin' version '2.0.0'
18-
id 'co.com.bancolombia.cleanArchitecture' version '3.20.2'
18+
id 'co.com.bancolombia.cleanArchitecture' version '3.20.7'
1919
}
2020

2121
repositories {

Diff for: docs/docs/reactive-commons/9-configuration-properties.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,12 @@ public class MyDomainConfig {
105105
}
106106
```
107107

108-
Additionally, if you want to set only connection properties you can use the `AsyncPropsDomain.SecretFiller` class.
108+
Additionally, if you want to set only connection properties you can use the `AsyncPropsDomain.RabbitSecretFiller` class.
109109

110110
```java
111111
112112
@Bean
113-
@Primary
114-
public AsyncPropsDomain.SecretFiller customFiller() {
113+
public AsyncPropsDomain.RabbitSecretFiller customFiller() {
115114
return (domain, asyncProps) -> {
116115
// customize asyncProps here by domain
117116
};

Diff for: main.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ subprojects {
8080

8181
dependencyManagement {
8282
imports {
83-
mavenBom 'org.springframework.boot:spring-boot-dependencies:3.4.0'
83+
mavenBom 'org.springframework.boot:spring-boot-dependencies:3.4.1'
8484
}
8585
}
8686

Diff for: starters/async-rabbit-starter/src/main/java/org/reactivecommons/async/rabbit/RabbitMQSetupUtils.java

+8-4
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,10 @@ public static DiscardNotifier createDiscardNotifier(ReactiveMessageSender sender
9090
return new DLQDiscardNotifier(appDomainEventBus, converter);
9191
}
9292

93-
private static SenderOptions reactiveCommonsSenderOptions(String appName, ConnectionFactoryProvider provider, RabbitProperties rabbitProperties) {
94-
final Mono<Connection> senderConnection = createConnectionMono(provider.getConnectionFactory(), appName, SENDER_TYPE);
93+
private static SenderOptions reactiveCommonsSenderOptions(String appName, ConnectionFactoryProvider provider,
94+
RabbitProperties rabbitProperties) {
95+
final Mono<Connection> senderConnection = createConnectionMono(provider.getConnectionFactory(), appName,
96+
SENDER_TYPE);
9597
final ChannelPoolOptions channelPoolOptions = new ChannelPoolOptions();
9698
final PropertyMapper map = PropertyMapper.get();
9799

@@ -109,10 +111,12 @@ private static SenderOptions reactiveCommonsSenderOptions(String appName, Connec
109111
.transform(Utils::cache));
110112
}
111113

112-
private static Mono<Connection> createConnectionMono(ConnectionFactory factory, String connectionPrefix, String connectionType) {
114+
private static Mono<Connection> createConnectionMono(ConnectionFactory factory, String connectionPrefix,
115+
String connectionType) {
113116
return Mono.fromCallable(() -> factory.newConnection(connectionPrefix + " " + connectionType))
114117
.doOnError(err ->
115-
log.log(Level.SEVERE, "Error creating connection to RabbitMq Broker. Starting retry process...", err)
118+
log.log(Level.SEVERE, "Error creating connection to RabbitMQ Broker in host" +
119+
factory.getHost() + ". Starting retry process...", err)
116120
)
117121
.retryWhen(Retry.backoff(Long.MAX_VALUE, Duration.ofMillis(300))
118122
.maxBackoff(Duration.ofMillis(3000)))

0 commit comments

Comments
 (0)