public class TcpOutboundChannelAdapterSpec extends MessageHandlerSpec<TcpOutboundChannelAdapterSpec,TcpSendingMessageHandler> implements ComponentsRegistration
Modifier and Type | Field and Description |
---|---|
protected AbstractConnectionFactory |
connectionFactory |
PARSER, target
logger
DEFAULT_PHASE
OBJECT_TYPE_ATTRIBUTE
Modifier | Constructor and Description |
---|---|
protected |
TcpOutboundChannelAdapterSpec(AbstractConnectionFactory connectionFactoryBean)
Construct an instance using an existing spring-managed connection factory.
|
protected |
TcpOutboundChannelAdapterSpec(AbstractConnectionFactorySpec<?,?> connectionFactorySpec)
Construct an instance using the provided connection factory spec.
|
Modifier and Type | Method and Description |
---|---|
TcpOutboundChannelAdapterSpec |
clientMode(boolean isClientMode) |
Map<Object,String> |
getComponentsToRegister() |
TcpOutboundChannelAdapterSpec |
retryInterval(long retryInterval) |
TcpOutboundChannelAdapterSpec |
taskScheduler(TaskScheduler taskScheduler) |
_this, createInstance, destroyInstance, doGet, get, getId, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stop
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
protected final AbstractConnectionFactory connectionFactory
protected TcpOutboundChannelAdapterSpec(AbstractConnectionFactory connectionFactoryBean)
connectionFactoryBean
- the spring-managed bean.protected TcpOutboundChannelAdapterSpec(AbstractConnectionFactorySpec<?,?> connectionFactorySpec)
connectionFactorySpec
- the spec.public TcpOutboundChannelAdapterSpec clientMode(boolean isClientMode)
isClientMode
- true to connect in client modeTcpSendingMessageHandler.setClientMode(boolean)
public TcpOutboundChannelAdapterSpec retryInterval(long retryInterval)
retryInterval
- the client mode retry interval to set.TcpSendingMessageHandler.setRetryInterval(long)
public TcpOutboundChannelAdapterSpec taskScheduler(TaskScheduler taskScheduler)
taskScheduler
- the scheduler for connecting in client mode.IntegrationObjectSupport.setTaskScheduler(TaskScheduler)
public Map<Object,String> getComponentsToRegister()
getComponentsToRegister
in interface ComponentsRegistration