List of usage examples for org.springframework.integration.ip.tcp.connection TcpConnectionInterceptor close
void close();
From source file:org.springframework.integration.ip.tcp.connection.AbstractTcpConnection.java
/** * If we have been intercepted, propagate the close from the outermost interceptor; * otherwise, just call close()./*w ww. j a v a 2 s . co m*/ */ protected void closeConnection() { if (!(this.listener instanceof TcpConnectionInterceptor)) { close(); return; } TcpConnectionInterceptor outerInterceptor = (TcpConnectionInterceptor) this.listener; while (outerInterceptor.getListener() instanceof TcpConnectionInterceptor) { outerInterceptor = (TcpConnectionInterceptor) outerInterceptor.getListener(); } outerInterceptor.close(); }