All Known Subinterfaces:
TcpConnectionInterceptor
All Known Implementing Classes:
TcpConnectionInterceptorSupport, TcpInboundGateway, TcpOutboundGateway, TcpSendingMessageHandler
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface TcpSender
An interface representing a sending client of a connection factory.
Since:
2.0
Author:
Gary Russell
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    When we are using sockets owned by a TcpListener, this method is called each time a new connection is made.
    default void
    When we are using sockets owned by a TcpListener, this method is called each time a connection is closed.
  • Method Details

    • addNewConnection

      void addNewConnection(TcpConnection connection)
      When we are using sockets owned by a TcpListener, this method is called each time a new connection is made.
      Parameters:
      connection - The connection.
    • removeDeadConnection

      default void removeDeadConnection(TcpConnection connection)
      When we are using sockets owned by a TcpListener, this method is called each time a connection is closed.
      Parameters:
      connection - The connection.