GH-3520: Improve TcpConnectionInterceptor Javadocs

Resolves https://github.com/spring-projects/spring-integration/issues/3520
This commit is contained in:
Gary Russell
2021-04-12 14:10:15 -04:00
committed by Artem Bilan
parent c13e40daab
commit 6f8290a0f6

View File

@@ -96,6 +96,15 @@ public abstract class TcpConnectionInterceptorSupport extends TcpConnectionSuppo
this.theConnection.registerSender(this);
}
/**
* {@inheritDoc}
* <p>
* IMPORTANT: Do not override this method in your interceptor implementation if the
* intercepted connection is created by a server connection factory, because the
* connection id of the underlying connection is used for routing when arbitrary
* outbound messaging is being used. The method is not final because client-side
* interceptors can override it without any issues.
*/
@Override
public String getConnectionId() {
return this.theConnection.getConnectionId();