Class TcpClientConnectionFactorySpec<S extends TcpClientConnectionFactorySpec<S,C>,C extends AbstractClientConnectionFactory>
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<T>
org.springframework.integration.dsl.IntegrationComponentSpec<S,C>
org.springframework.integration.ip.dsl.AbstractConnectionFactorySpec<S,C>
org.springframework.integration.ip.dsl.TcpClientConnectionFactorySpec<S,C>
- Type Parameters:
S
- the targetTcpServerConnectionFactorySpec
implementation type.C
- the targetAbstractServerConnectionFactory
implementation type.
- All Implemented Interfaces:
Aware
,BeanClassLoaderAware
,BeanFactoryAware
,DisposableBean
,FactoryBean<C>
,InitializingBean
,Lifecycle
,Phased
,SmartLifecycle
- Direct Known Subclasses:
TcpNetClientConnectionFactorySpec
,TcpNioClientConnectionFactorySpec
public abstract class TcpClientConnectionFactorySpec<S extends TcpClientConnectionFactorySpec<S,C>,C extends AbstractClientConnectionFactory>
extends AbstractConnectionFactorySpec<S,C>
- Since:
- 5.0
- Author:
- Gary Russell, Artem Bilan
-
Field Summary
Fields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
PARSER, target
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
logger
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE
-
Constructor Summary
ModifierConstructorDescriptionprotected
Create an instance.protected
TcpClientConnectionFactorySpec
(String host, int port) Deprecated.since 6.0.3; use a subclass.protected
TcpClientConnectionFactorySpec
(String host, int port, boolean nio) Deprecated.since 6.0.3; use a subclass. -
Method Summary
Modifier and TypeMethodDescriptionconnectTimeout
(int connectTimeout) Set the connection timeout in seconds.Methods inherited from class org.springframework.integration.ip.dsl.AbstractConnectionFactorySpec
deserializer, id, interceptorFactoryChain, leaveOpen, lookupHost, mapper, nioHarvestInterval, readDelay, serializer, singleUseConnections, socketSupport, soKeepAlive, soLinger, soReceiveBufferSize, soSendBufferSize, soTcpNoDelay, soTimeout, soTrafficClass, taskExecutor, tcpSocketSupport
Methods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
_this, createInstance, destroyInstance, doGet, get, getId, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stop
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
Constructor Details
-
TcpClientConnectionFactorySpec
Create an instance.- Parameters:
cf
- the connection factory.- Since:
- 6.0.3
-
TcpClientConnectionFactorySpec
Deprecated.since 6.0.3; use a subclass.Create an instance.- Parameters:
host
- the host.port
- the port.
-
TcpClientConnectionFactorySpec
Deprecated.since 6.0.3; use a subclass.Create an instance.- Parameters:
host
- the host.port
- the port.nio
- true for NIO.
-
-
Method Details
-
connectTimeout
Set the connection timeout in seconds. Defaults to 60.- Parameters:
connectTimeout
- the timeout.- Returns:
- the spec.
- Since:
- 5.2
-