- All Known Implementing Classes:
- 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 TcpNetConnectionSupport
Used by NET connection factories to instantiate a
- Gary Russell, Artem Bilan
(Socket socket, boolean server, boolean lookupHost, @Nullable ApplicationEventPublisher applicationEventPublisher, String connectionFactoryName)
socket- the Socket.
server- true if this connection is a server connection.
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.
- the TcpNetConnection