Class DefaultTcpNioConnectionSupport
java.lang.Object
org.springframework.integration.ip.tcp.connection.AbstractTcpConnectionSupport
org.springframework.integration.ip.tcp.connection.DefaultTcpNioConnectionSupport
- All Implemented Interfaces:
- TcpNioConnectionSupport
public class DefaultTcpNioConnectionSupport
extends AbstractTcpConnectionSupport
implements TcpNioConnectionSupport
Implementation of 
TcpNioConnectionSupport for non-SSL
 NIO connections.- Since:
- 2.2
- Author:
- Gary Russell, Artem Bilan
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncreateNewConnection(SocketChannel socketChannel, boolean server, boolean lookupHost, ApplicationEventPublisher applicationEventPublisher, String connectionFactoryName) Create a newTcpNioConnectionobject wrapping theSocketChannel.Methods inherited from class org.springframework.integration.ip.tcp.connection.AbstractTcpConnectionSupportgetPushbackBufferSize, isPushbackCapable, setPushbackBufferSize, setPushbackCapable
- 
Constructor Details- 
DefaultTcpNioConnectionSupportpublic DefaultTcpNioConnectionSupport()
 
- 
- 
Method Details- 
createNewConnectionpublic TcpNioConnection createNewConnection(SocketChannel socketChannel, boolean server, boolean lookupHost, @Nullable ApplicationEventPublisher applicationEventPublisher, String connectionFactoryName) Description copied from interface:TcpNioConnectionSupportCreate a newTcpNioConnectionobject wrapping theSocketChannel.- Specified by:
- createNewConnectionin interface- TcpNioConnectionSupport
- Parameters:
- socketChannel- the SocketChannel.
- 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.
- Returns:
- the TcpNioConnection
 
 
-