Class TcpNetConnection

java.lang.Object
org.springframework.integration.ip.tcp.connection.TcpConnectionSupport
org.springframework.integration.ip.tcp.connection.TcpNetConnection
All Implemented Interfaces:
Runnable, TcpConnection, SchedulingAwareRunnable

public class TcpNetConnection extends TcpConnectionSupport implements SchedulingAwareRunnable
A TcpConnection that uses and underlying Socket.
Since:
2.0
Author:
Gary Russell, Artem Bilan
  • Constructor Details

    • TcpNetConnection

      public TcpNetConnection(Socket socket, boolean server, boolean lookupHost, @Nullable ApplicationEventPublisher applicationEventPublisher, String connectionFactoryName)
      Construct a TcpNetConnection for the socket.
      Parameters:
      socket - the socket
      server - if true this connection was created as a result of an incoming request.
      lookupHost - true if hostname lookup should be performed, otherwise the connection will be identified using the ip address.
      applicationEventPublisher - the publisher to which OPEN, CLOSE and EXCEPTION events will be sent; may be null if event publishing is not required.
      connectionFactoryName - the name of the connection factory creating this connection; used during event publishing, may be null, in which case "unknown" will be used.
  • Method Details