Skip to content

Commit 44609d3

Browse files
committed
GH-3199: Fix typo; move capture of creation time
1 parent ac7441a commit 44609d3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spring-integration-ip/src/main/java/org/springframework/integration/ip/tcp/connection/FailoverClientConnectionFactory.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ protected TcpConnectionSupport obtainConnection() throws InterruptedException {
160160
failoverTcpConnection.registerListener(getListener());
161161
}
162162
failoverTcpConnection.incrementEpoch();
163-
this.creationTime = System.currentTimeMillis();
164163
if (shared) {
164+
this.creationTime = System.currentTimeMillis();
165165
/*
166166
* We may have simply wrapped the same connection in a new wrapper; don't close.
167167
*/

src/reference/asciidoc/ip.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ The following example shows how to configure a failover client connection factor
536536

537537
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.
538538

539-
The connnection factory has two properties when used with a shared connection (`singleUse=false`):
539+
The connection factory has two properties when used with a shared connection (`singleUse=false`):
540540

541541
* `refreshSharedInterval`
542542
* `closeOnRefresh`

0 commit comments

Comments
 (0)