Class AbstractConnectionFactorySpec<S extends AbstractConnectionFactorySpec<S,C>,C extends AbstractConnectionFactory>  
java.lang.Object
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:
- 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.IntegrationComponentSpeclogger, PARSER, targetFields inherited from interface org.springframework.beans.factory.FactoryBeanOBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.SmartLifecycleDEFAULT_PHASE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiondeserializer(Deserializer<?> deserializer) Configure the component identifier.interceptorFactoryChain(TcpConnectionInterceptorFactoryChain interceptorFactoryChain) leaveOpen(boolean leaveOpen) lookupHost(boolean lookupHost) mapper(TcpMessageMapper mapper) nioHarvestInterval(int nioHarvestInterval) readDelay(long readDelay) serializer(Serializer<?> serializer) singleUseConnections(boolean single) This connection factory uses a new connection for each operation.socketSupport(TcpSocketSupport tcpSocketSupport) soKeepAlive(boolean soKeepAlive) soLinger(int soLinger) soReceiveBufferSize(int soReceiveBufferSize) soSendBufferSize(int soSendBufferSize) soTcpNoDelay(boolean soTcpNoDelay) soTimeout(int soTimeout) soTrafficClass(int soTrafficClass) taskExecutor(Executor taskExecutor) Methods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec_this, afterPropertiesSet, destroy, doGet, getId, getObject, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stopMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBeanisSingleton
- 
Constructor Details- 
AbstractConnectionFactorySpec
 
- 
- 
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, in milliseconds.
- Returns:
- the spec.
- See Also:
 
- 
soReceiveBufferSize- Parameters:
- soReceiveBufferSize- the receive buffer size socket option.
- Returns:
- the spec.
- See Also:
 
- 
soSendBufferSize- Parameters:
- soSendBufferSize- the send buffer size socket option.
- Returns:
- the spec.
- See Also:
 
- 
soTcpNoDelay- Parameters:
- soTcpNoDelay- the TCP no delay socket option (disable Nagle's algorithm).
- Returns:
- the spec.
- See Also:
 
- 
soLinger- Parameters:
- soLinger- the linger socket option.
- Returns:
- the spec.
- See Also:
 
- 
soKeepAlive- Parameters:
- soKeepAlive- the keep alive socket option.
- Returns:
- the spec.
- See Also:
 
- 
soTrafficClass- Parameters:
- soTrafficClass- the traffic class socket option.
- Returns:
- the spec.
- See Also:
 
- 
taskExecutor
- 
deserializer- Parameters:
- deserializer- the deserializer.
- Returns:
- the spec.
- See Also:
 
- 
serializer- Parameters:
- serializer- the serializer.
- Returns:
- the spec.
- See Also:
 
- 
mapper- Parameters:
- mapper- the message mapper.
- Returns:
- the spec.
- See Also:
 
- 
leaveOpen- Parameters:
- leaveOpen- true to leave the socket open for additional messages.
- Returns:
- the spec.
- See Also:
 
- 
interceptorFactoryChain- Parameters:
- interceptorFactoryChain- the interceptor factory chain.
- Returns:
- the spec.
- See Also:
 
- 
lookupHost- Parameters:
- lookupHost- true to reverse lookup the host.
- Returns:
- the spec.
- See Also:
 
- 
nioHarvestInterval- Parameters:
- nioHarvestInterval- the harvest interval when using NIO.
- Returns:
- the spec.
- See Also:
 
- 
readDelay- Parameters:
- readDelay- the read delay.
- Returns:
- the spec.
- See Also:
 
- 
socketSupport- Parameters:
- tcpSocketSupport- the- TcpSocketSupport.
- Returns:
- the spec.
- See Also:
 
- 
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
 
 
-