org.springframework.integration.ip.tcp.connection
Interface TcpNioConnectionSupport
- All Known Implementing Classes:
- DefaultTcpNioConnectionSupport, DefaultTcpNioSSLConnectionSupport
public interface TcpNioConnectionSupport
Used by NIO connection factories to instantiate a TcpNioConnection
object.
Implementations for SSL and non-SSL TcpNioConnection
s are provided.
- Since:
- 2.2
- Author:
- Gary Russell
Method Summary |
TcpNioConnection |
createNewConnection(java.nio.channels.SocketChannel socketChannel,
boolean server,
boolean lookupHost,
org.springframework.context.ApplicationEventPublisher applicationEventPublisher,
java.lang.String connectionFactoryName)
Create a new TcpNioConnection object wrapping the SocketChannel |
createNewConnection
TcpNioConnection createNewConnection(java.nio.channels.SocketChannel socketChannel,
boolean server,
boolean lookupHost,
org.springframework.context.ApplicationEventPublisher applicationEventPublisher,
java.lang.String connectionFactoryName)
throws java.lang.Exception
- Create a new
TcpNioConnection
object wrapping the SocketChannel
- 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
- Throws:
java.lang.Exception