GH-3199: Fix typo; move capture of creation time
This commit is contained in:
@@ -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.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -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`
|
||||||
|
|||||||
Reference in New Issue
Block a user