Class AbstractConnectionFactorySpec<S extends AbstractConnectionFactorySpec<S,C>,C extends AbstractConnectionFactory>
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>
- Type Parameters:
- S- the target- AbstractConnectionFactorySpecimplementation type.
- C- the target- AbstractConnectionFactoryimplementation type.
- All Implemented Interfaces:
- Aware,- BeanClassLoaderAware,- BeanFactoryAware,- DisposableBean,- FactoryBean<C>,- InitializingBean,- Lifecycle,- Phased,- SmartLifecycle
- Direct Known Subclasses:
- TcpClientConnectionFactorySpec,- TcpServerConnectionFactorySpec
public abstract class AbstractConnectionFactorySpec<S extends AbstractConnectionFactorySpec<S,C>,C extends AbstractConnectionFactory> extends IntegrationComponentSpec<S,C>
- Since:
- 5.0
- Author:
- Gary Russell, Artem Bilan
- 
Field SummaryFields inherited from class org.springframework.integration.dsl.IntegrationComponentSpecPARSER, target
- 
Constructor SummaryConstructors Modifier Constructor Description protectedAbstractConnectionFactorySpec(C connectionFactory)
- 
Method SummaryModifier and Type Method Description Sdeserializer(Deserializer<?> deserializer)Sid(String id)Configure the component identifier.SinterceptorFactoryChain(TcpConnectionInterceptorFactoryChain interceptorFactoryChain)SleaveOpen(boolean leaveOpen)SlookupHost(boolean lookupHost)Smapper(TcpMessageMapper mapper)SnioHarvestInterval(int nioHarvestInterval)SreadDelay(long readDelay)Sserializer(Serializer<?> serializer)SsingleUseConnections(boolean single)This connection factory uses a new connection for each operation.SsoKeepAlive(boolean soKeepAlive)SsoLinger(int soLinger)SsoReceiveBufferSize(int soReceiveBufferSize)SsoSendBufferSize(int soSendBufferSize)SsoTcpNoDelay(boolean soTcpNoDelay)SsoTimeout(int soTimeout)SsoTrafficClass(int soTrafficClass)StaskExecutor(Executor taskExecutor)StcpSocketSupport(TcpSocketSupport tcpSocketSupport)Methods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec_this, createInstance, destroyInstance, doGet, get, getId, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stopMethods inherited from class org.springframework.beans.factory.config.AbstractFactoryBeanafterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
- 
Constructor Details
- 
Method Details- 
idDescription copied from class:IntegrationComponentSpecConfigure the component identifier. Used as thebeanNameto register the bean in the application context for this component.- Overrides:
- idin class- IntegrationComponentSpec<S extends AbstractConnectionFactorySpec<S,C>,C extends AbstractConnectionFactory>
- Parameters:
- id- the id.
- Returns:
- the spec.
 
- 
soTimeout- Parameters:
- soTimeout- the timeout socket option.
- Returns:
- the spec.
- See Also:
- AbstractConnectionFactory.setSoTimeout(int)
 
- 
soReceiveBufferSize- Parameters:
- soReceiveBufferSize- the receive buffer size socket option.
- Returns:
- the spec.
- See Also:
- AbstractConnectionFactory.setSoReceiveBufferSize(int)
 
- 
soSendBufferSize- Parameters:
- soSendBufferSize- the send buffer size socket option.
- Returns:
- the spec.
- See Also:
- AbstractConnectionFactory.setSoSendBufferSize(int)
 
- 
soTcpNoDelay- Parameters:
- soTcpNoDelay- the TCP no delay socket option (disable Nagle's algorithm).
- Returns:
- the spec.
- See Also:
- AbstractConnectionFactory.setSoTcpNoDelay(boolean)
 
- 
soLinger- Parameters:
- soLinger- the linger socket option.
- Returns:
- the spec.
- See Also:
- AbstractConnectionFactory.setSoLinger(int)
 
- 
soKeepAlive- Parameters:
- soKeepAlive- the keep alive socket option.
- Returns:
- the spec.
- See Also:
- AbstractConnectionFactory.setSoKeepAlive(boolean)
 
- 
soTrafficClass- Parameters:
- soTrafficClass- the traffic class socket option.
- Returns:
- the spec.
- See Also:
- AbstractConnectionFactory.setSoTrafficClass(int)
 
- 
taskExecutor- Parameters:
- taskExecutor- the task executor.
- Returns:
- the spec.
- See Also:
- AbstractConnectionFactory.setTaskExecutor(Executor)
 
- 
deserializer- Parameters:
- deserializer- the deserializer.
- Returns:
- the spec.
- See Also:
- AbstractConnectionFactory.setDeserializer(Deserializer)
 
- 
serializer- Parameters:
- serializer- the serializer.
- Returns:
- the spec.
- See Also:
- AbstractConnectionFactory.setSerializer(Serializer)
 
- 
mapper- Parameters:
- mapper- the message mapper.
- Returns:
- the spec.
- See Also:
- AbstractConnectionFactory.setMapper(TcpMessageMapper)
 
- 
leaveOpen- Parameters:
- leaveOpen- true to leave the socket open for additional messages.
- Returns:
- the spec.
- See Also:
- AbstractConnectionFactory.setLeaveOpen(boolean)
 
- 
interceptorFactoryChain- Parameters:
- interceptorFactoryChain- the interceptor factory chain.
- Returns:
- the spec.
- See Also:
- AbstractConnectionFactory.setInterceptorFactoryChain(TcpConnectionInterceptorFactoryChain)
 
- 
lookupHost- Parameters:
- lookupHost- true to reverse lookup the host.
- Returns:
- the spec.
- See Also:
- AbstractConnectionFactory.setLookupHost(boolean)
 
- 
nioHarvestInterval- Parameters:
- nioHarvestInterval- the harvest interval when using NIO.
- Returns:
- the spec.
- See Also:
- AbstractConnectionFactory.setNioHarvestInterval(int)
 
- 
readDelay- Parameters:
- readDelay- the read delay.
- Returns:
- the spec.
- See Also:
- AbstractConnectionFactory.setReadDelay(long)
 
- 
tcpSocketSupport- Parameters:
- tcpSocketSupport- the- TcpSocketSupport.
- Returns:
- the spec.
- See Also:
- AbstractConnectionFactory.setTcpSocketSupport(TcpSocketSupport)
 
- 
singleUseConnectionsThis connection factory uses a new connection for each operation.- Parameters:
- single- true for a new connection for each operation.
- Returns:
- the spec.
- Since:
- 5.2
 
 
-