S
- the target AbstractConnectionFactorySpec
implementation type.C
- the target AbstractConnectionFactory
implementation type.public abstract class AbstractConnectionFactorySpec<S extends AbstractConnectionFactorySpec<S,C>,C extends AbstractConnectionFactory> extends IntegrationComponentSpec<S,C>
PARSER, target
logger
DEFAULT_PHASE
OBJECT_TYPE_ATTRIBUTE
Modifier | Constructor and Description |
---|---|
protected |
AbstractConnectionFactorySpec(C connectionFactory) |
Modifier and Type | Method and Description |
---|---|
S |
deserializer(Deserializer<?> deserializer) |
S |
id(String id)
Configure the component identifier.
|
S |
interceptorFactoryChain(TcpConnectionInterceptorFactoryChain interceptorFactoryChain) |
S |
leaveOpen(boolean leaveOpen) |
S |
lookupHost(boolean lookupHost) |
S |
mapper(TcpMessageMapper mapper) |
S |
nioHarvestInterval(int nioHarvestInterval) |
S |
readDelay(long readDelay) |
S |
serializer(Serializer<?> serializer) |
S |
singleUseConnections(boolean single)
This connection factory uses a new connection for each operation.
|
S |
soKeepAlive(boolean soKeepAlive) |
S |
soLinger(int soLinger) |
S |
soReceiveBufferSize(int soReceiveBufferSize) |
S |
soSendBufferSize(int soSendBufferSize) |
S |
soTcpNoDelay(boolean soTcpNoDelay) |
S |
soTimeout(int soTimeout) |
S |
soTrafficClass(int soTrafficClass) |
S |
taskExecutor(Executor taskExecutor) |
S |
tcpSocketSupport(TcpSocketSupport tcpSocketSupport) |
_this, createInstance, destroyInstance, doGet, get, getId, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stop
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
protected AbstractConnectionFactorySpec(C connectionFactory)
public S id(String id)
IntegrationComponentSpec
beanName
to register the
bean in the application context for this component.id
in class IntegrationComponentSpec<S extends AbstractConnectionFactorySpec<S,C>,C extends AbstractConnectionFactory>
id
- the id.public S soTimeout(int soTimeout)
soTimeout
- the timeout socket option.AbstractConnectionFactory.setSoTimeout(int)
public S soReceiveBufferSize(int soReceiveBufferSize)
soReceiveBufferSize
- the receive buffer size socket option.AbstractConnectionFactory.setSoReceiveBufferSize(int)
public S soSendBufferSize(int soSendBufferSize)
soSendBufferSize
- the send buffer size socket option.AbstractConnectionFactory.setSoSendBufferSize(int)
public S soTcpNoDelay(boolean soTcpNoDelay)
soTcpNoDelay
- the TCP no delay socket option (disable Nagle's algorithm).AbstractConnectionFactory.setSoTcpNoDelay(boolean)
public S soLinger(int soLinger)
soLinger
- the linger socket option.AbstractConnectionFactory.setSoLinger(int)
public S soKeepAlive(boolean soKeepAlive)
soKeepAlive
- the keep alive socket option.AbstractConnectionFactory.setSoKeepAlive(boolean)
public S soTrafficClass(int soTrafficClass)
soTrafficClass
- the traffic class socket option.AbstractConnectionFactory.setSoTrafficClass(int)
public S taskExecutor(Executor taskExecutor)
taskExecutor
- the task executor.AbstractConnectionFactory.setTaskExecutor(Executor)
public S deserializer(Deserializer<?> deserializer)
deserializer
- the deserializer.AbstractConnectionFactory.setDeserializer(Deserializer)
public S serializer(Serializer<?> serializer)
serializer
- the serializer.AbstractConnectionFactory.setSerializer(Serializer)
public S mapper(TcpMessageMapper mapper)
mapper
- the message mapper.AbstractConnectionFactory.setMapper(TcpMessageMapper)
public S leaveOpen(boolean leaveOpen)
leaveOpen
- true to leave the socket open for additional messages.AbstractConnectionFactory.setLeaveOpen(boolean)
public S interceptorFactoryChain(TcpConnectionInterceptorFactoryChain interceptorFactoryChain)
interceptorFactoryChain
- the interceptor factory chain.AbstractConnectionFactory.setInterceptorFactoryChain(TcpConnectionInterceptorFactoryChain)
public S lookupHost(boolean lookupHost)
lookupHost
- true to reverse lookup the host.AbstractConnectionFactory.setLookupHost(boolean)
public S nioHarvestInterval(int nioHarvestInterval)
nioHarvestInterval
- the harvest interval when using NIO.AbstractConnectionFactory.setNioHarvestInterval(int)
public S readDelay(long readDelay)
readDelay
- the read delay.AbstractConnectionFactory.setReadDelay(long)
public S tcpSocketSupport(TcpSocketSupport tcpSocketSupport)
tcpSocketSupport
- the TcpSocketSupport
.AbstractConnectionFactory.setTcpSocketSupport(TcpSocketSupport)
public S singleUseConnections(boolean single)
single
- true for a new connection for each operation.