aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorHarald Musum <musum@yahooinc.com>2021-11-17 08:50:06 +0100
committerHarald Musum <musum@yahooinc.com>2021-11-17 08:50:06 +0100
commit774afac9d7d4380c0fdd31d2202d84a83f9d1b67 (patch)
tree2683d35ec9164a4197d749d057463dd78efabdf5 /config
parent3cc27ac65a5a6601f1405e67ab99c60cb63aa00c (diff)
Simplify getting connection to use for file download
Diffstat (limited to 'config')
-rw-r--r--config/src/main/java/com/yahoo/vespa/config/ConnectionPool.java4
-rw-r--r--config/src/main/java/com/yahoo/vespa/config/JRTConnectionPool.java2
2 files changed, 3 insertions, 3 deletions
diff --git a/config/src/main/java/com/yahoo/vespa/config/ConnectionPool.java b/config/src/main/java/com/yahoo/vespa/config/ConnectionPool.java
index 31f85ee4fd5..efcb30213ad 100644
--- a/config/src/main/java/com/yahoo/vespa/config/ConnectionPool.java
+++ b/config/src/main/java/com/yahoo/vespa/config/ConnectionPool.java
@@ -11,8 +11,8 @@ public interface ConnectionPool extends AutoCloseable {
Connection getCurrent();
/**
- * Switches to another (healthy, if one exists) Connection instance.
- * Returns the resulting Connection.
+ * Switches to another (healthy, if possible) Connection instance. {@link #getCurrent()} will
+ * return this instance afterwards, which is also the return value.
*
* @return a Connection
*/
diff --git a/config/src/main/java/com/yahoo/vespa/config/JRTConnectionPool.java b/config/src/main/java/com/yahoo/vespa/config/JRTConnectionPool.java
index f6708a1432c..a64121e2553 100644
--- a/config/src/main/java/com/yahoo/vespa/config/JRTConnectionPool.java
+++ b/config/src/main/java/com/yahoo/vespa/config/JRTConnectionPool.java
@@ -15,7 +15,7 @@ import java.util.logging.Logger;
/**
* A pool of JRT connections to a config source (either a config server or a config proxy).
- * The current connection is chosen randomly when calling {#link {@link #switchConnection()}}
+ * The current connection is chosen randomly when calling {@link #switchConnection(Connection)}
* (it will continue to use the same connection if there is only one source).
* The current connection is available with {@link #getCurrent()}.
*