Example usage for org.springframework.messaging.tcp TcpConnection close

List of usage examples for org.springframework.messaging.tcp TcpConnection close

Introduction

In this page you can find the example usage for org.springframework.messaging.tcp TcpConnection close.

Prototype

@Override
void close();

Source Link

Document

Close the connection.

Usage

From source file:org.springframework.messaging.simp.stomp.DefaultStompSession.java

private void resetConnection() {
    TcpConnection<?> conn = this.connection;
    this.connection = null;
    if (conn != null) {
        try {//from w ww  . j  a va2 s.  c  om
            conn.close();
        } catch (Throwable ex) {
            // ignore
        }
    }
}