Java org.springframework.integration.ip.tcp.connection TcpNioClientConnectionFactory fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.integration.ip.tcp.connection TcpNioClientConnectionFactory fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.integration.ip.tcp.connection TcpNioClientConnectionFactory.

The text is from its open source code.

Constructor

TcpNioClientConnectionFactory(String host, int port)
Creates a TcpNioClientConnectionFactory for connections to the host and port.

Method

voidafterPropertiesSet()
TcpConnectionSupportgetConnection()
Obtains a connection - if #setSingleUse(boolean) was called with true, a new connection is returned; otherwise a single connection is reused for all requests while the connection remains open.
MapgetConnections()
voidprocessNioSelections(int selectionCount, final Selector selector, @Nullable ServerSocketChannel server, Map connectionMap)
Times out any expired connections then, if selectionCount > 0 , processes the selected keys.
voidsetApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher)
voidsetDeserializer(Deserializer deserializer)
voidsetNioHarvestInterval(int nioHarvestInterval)
How often we clean up closed NIO connections if soTimeout is 0.
voidsetSerializer(Serializer serializer)
voidsetSingleUse(boolean singleUse)
If true, sockets created by this factory will be used once.
voidsetSoTimeout(int soTimeout)
voidstart()
voidstop()