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