Interface TcpSender
- 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.
An interface representing a sending client of a connection
factory.
- Since:
- 2.0
- Author:
- Gary Russell
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addNewConnection
(TcpConnection connection) When we are using sockets owned by aTcpListener
, this method is called each time a new connection is made.default void
removeDeadConnection
(TcpConnection connection) When we are using sockets owned by aTcpListener
, this method is called each time a connection is closed.
-
Method Details
-
addNewConnection
When we are using sockets owned by aTcpListener
, this method is called each time a new connection is made.- Parameters:
connection
- The connection.
-
removeDeadConnection
When we are using sockets owned by aTcpListener
, this method is called each time a connection is closed.- Parameters:
connection
- The connection.
-