From 705c3ce00eb092bf6f97f4c6abb04ca2304437f1 Mon Sep 17 00:00:00 2001 From: Saikiran Daripelli Date: Thu, 16 Mar 2017 16:26:03 +0530 Subject: [PATCH] Adding comments. --- .../src/main/java/org/redisson/config/Config.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/redisson/src/main/java/org/redisson/config/Config.java b/redisson/src/main/java/org/redisson/config/Config.java index 9fbc62282..bb575b1aa 100644 --- a/redisson/src/main/java/org/redisson/config/Config.java +++ b/redisson/src/main/java/org/redisson/config/Config.java @@ -27,6 +27,7 @@ import org.redisson.codec.CodecProvider; import org.redisson.codec.DefaultCodecProvider; import org.redisson.codec.JsonJacksonCodec; import org.redisson.connection.ConnectionManager; +import org.redisson.connection.ReplicatedConnectionManager; import org.redisson.liveobject.provider.DefaultResolverProvider; import org.redisson.liveobject.provider.ResolverProvider; @@ -303,10 +304,23 @@ public class Config { this.replicatedServersConfig = replicatedServersConfig; } + /** + * Returns the connection manager if supplied via + * {@link #useCustomServers(ConnectionManager)} + * + * @return ConnectionManager + */ ConnectionManager getConnectionManager() { return connectionManager; } + /** + * This is an extension point to supply custom connection manager. + * + * @see ReplicatedConnectionManager on how to implement a connection + * manager. + * @param connectionManager + */ public void useCustomServers(ConnectionManager connectionManager) { this.connectionManager = connectionManager; }