You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2020/08/13 08:31:08 UTC
[maven-resolver] 02/02: Properly shutdown Redisson Client
This is an automated email from the ASF dual-hosted git repository.
michaelo pushed a commit to branch redisson
in repository https://gitbox.apache.org/repos/asf/maven-resolver.git
commit b4f482f8b1c72de594684b3fc32cc409d603c78b
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Thu Aug 13 10:30:54 2020 +0200
Properly shutdown Redisson Client
---
.../org/eclipse/aether/synccontext/RedissonSyncContextFactory.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/maven-resolver-synccontext-redisson/src/main/java/org/eclipse/aether/synccontext/RedissonSyncContextFactory.java b/maven-resolver-synccontext-redisson/src/main/java/org/eclipse/aether/synccontext/RedissonSyncContextFactory.java
index 14c5d7d..a6edbd2 100644
--- a/maven-resolver-synccontext-redisson/src/main/java/org/eclipse/aether/synccontext/RedissonSyncContextFactory.java
+++ b/maven-resolver-synccontext-redisson/src/main/java/org/eclipse/aether/synccontext/RedissonSyncContextFactory.java
@@ -171,8 +171,10 @@ public class RedissonSyncContextFactory
}
@PreDestroy
- public void shutdown() {
- LOGGER.trace( "I was shut down!" );
+ public void shutdown()
+ {
+ LOGGER.trace( "Shutting down Redisson client with id '{}'", redissonClient.getId() );
+ redissonClient.shutdown();
}
static class RedissonSyncContext