GH-3199: Fix typo; move capture of creation time

This commit is contained in:
Gary Russell
2020-02-28 16:38:07 -05:00
parent 4180e01e59
commit e2b63bed7c
2 changed files with 2 additions and 2 deletions

View File

@@ -160,8 +160,8 @@ public class FailoverClientConnectionFactory extends AbstractClientConnectionFac
failoverTcpConnection.registerListener(getListener()); failoverTcpConnection.registerListener(getListener());
} }
failoverTcpConnection.incrementEpoch(); failoverTcpConnection.incrementEpoch();
this.creationTime = System.currentTimeMillis();
if (shared) { if (shared) {
this.creationTime = System.currentTimeMillis();
/* /*
* We may have simply wrapped the same connection in a new wrapper; don't close. * We may have simply wrapped the same connection in a new wrapper; don't close.
*/ */

View File

@@ -536,7 +536,7 @@ The following example shows how to configure a failover client connection factor
NOTE: When using the failover connection factory, the `singleUse` property must be consistent between the factory itself and the list of factories it is configured to use. NOTE: When using the failover connection factory, the `singleUse` property must be consistent between the factory itself and the list of factories it is configured to use.
The connnection factory has two properties when used with a shared connection (`singleUse=false`): The connection factory has two properties when used with a shared connection (`singleUse=false`):
* `refreshSharedInterval` * `refreshSharedInterval`
* `closeOnRefresh` * `closeOnRefresh`