You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Resolves#3199
Wheen the `refreshSharedInterval` was `Long.MAX_VALUE` the test for whether
the interval was exceeded always returned true.
Use a boolean instead (already in place on master).
I will backport to 5.1.x, 4.3.x after merge.
Copy file name to clipboardExpand all lines: spring-integration-ip/src/main/java/org/springframework/integration/ip/tcp/connection/FailoverClientConnectionFactory.java
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,8 @@ public class FailoverClientConnectionFactory extends AbstractClientConnectionFac
52
52
53
53
privatebooleancloseOnRefresh;
54
54
55
+
privatebooleanfailBack = true;
56
+
55
57
privatevolatilelongcreationTime;
56
58
57
59
/**
@@ -82,6 +84,7 @@ public void setRefreshSharedInterval(long refreshSharedInterval) {
82
84
Assert.isTrue(!this.cachingDelegates,
83
85
"'refreshSharedInterval' cannot be changed when using 'CachingClientConnectionFactory` delegates");
Copy file name to clipboardExpand all lines: spring-integration-ip/src/test/java/org/springframework/integration/ip/tcp/connection/FailoverClientConnectionFactoryTests.java
0 commit comments