Example usage for org.springframework.integration.ip.tcp.connection TcpSender addNewConnection

List of usage examples for org.springframework.integration.ip.tcp.connection TcpSender addNewConnection

Introduction

In this page you can find the example usage for org.springframework.integration.ip.tcp.connection TcpSender addNewConnection.

Prototype

void addNewConnection(TcpConnection connection);

Source Link

Document

When we are using sockets owned by a TcpListener , this method is called each time a new connection is made.

Usage

From source file:org.springframework.integration.ip.tcp.connection.AbstractTcpConnection.java

/**
 * @param sender the sender to set/*from   w w  w.j  a  v  a 2  s  . c o m*/
 */
public void registerSender(TcpSender sender) {
    this.sender = sender;
    if (sender != null) {
        sender.addNewConnection(this);
    }
}