From d8db1122c48cf1bfe4f5f787bf130fe86a9df902 Mon Sep 17 00:00:00 2001 From: Gary Russell Date: Fri, 28 Feb 2020 16:38:07 -0500 Subject: [PATCH] GH-3199: Fix typo; move capture of creation time --- .../ip/tcp/connection/FailoverClientConnectionFactory.java | 2 +- src/reference/asciidoc/ip.adoc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-integration-ip/src/main/java/org/springframework/integration/ip/tcp/connection/FailoverClientConnectionFactory.java b/spring-integration-ip/src/main/java/org/springframework/integration/ip/tcp/connection/FailoverClientConnectionFactory.java index 68ed5c66a5..cd8e6c2900 100644 --- a/spring-integration-ip/src/main/java/org/springframework/integration/ip/tcp/connection/FailoverClientConnectionFactory.java +++ b/spring-integration-ip/src/main/java/org/springframework/integration/ip/tcp/connection/FailoverClientConnectionFactory.java @@ -160,8 +160,8 @@ public class FailoverClientConnectionFactory extends AbstractClientConnectionFac failoverTcpConnection.registerListener(getListener()); } failoverTcpConnection.incrementEpoch(); - this.creationTime = System.currentTimeMillis(); if (shared) { + this.creationTime = System.currentTimeMillis(); /* * We may have simply wrapped the same connection in a new wrapper; don't close. */ diff --git a/src/reference/asciidoc/ip.adoc b/src/reference/asciidoc/ip.adoc index 0247e98397..41e55960a1 100644 --- a/src/reference/asciidoc/ip.adoc +++ b/src/reference/asciidoc/ip.adoc @@ -530,7 +530,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. -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` * `closeOnRefresh`