Skip to content

Commit 6f8290a

Browse files
garyrussellartembilan
authored andcommitted
GH-3520: Improve TcpConnectionInterceptor Javadocs
Resolves #3520
1 parent c13e40d commit 6f8290a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,15 @@ public void registerSender(TcpSender sender) {
9696
this.theConnection.registerSender(this);
9797
}
9898

99+
/**
100+
* {@inheritDoc}
101+
* <p>
102+
* IMPORTANT: Do not override this method in your interceptor implementation if the
103+
* intercepted connection is created by a server connection factory, because the
104+
* connection id of the underlying connection is used for routing when arbitrary
105+
* outbound messaging is being used. The method is not final because client-side
106+
* interceptors can override it without any issues.
107+
*/
99108
@Override
100109
public String getConnectionId() {
101110
return this.theConnection.getConnectionId();

0 commit comments

Comments
 (0)