public class TcpConnectionFactoryFactoryBean extends AbstractFactoryBean<AbstractConnectionFactory> implements SmartLifecycle, BeanNameAware, BeanFactoryAware, ApplicationEventPublisherAware
logger| Constructor and Description |
|---|
TcpConnectionFactoryFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
protected AbstractConnectionFactory |
createInstance() |
Class<?> |
getObjectType() |
int |
getPhase() |
boolean |
isAutoStartup() |
boolean |
isRunning() |
void |
setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher) |
void |
setApplySequence(boolean applySequence) |
void |
setBacklog(int backlog) |
void |
setBeanFactory(BeanFactory beanFactory) |
void |
setBeanName(String name) |
void |
setDeserializer(Deserializer<?> deserializer) |
void |
setHost(String host) |
void |
setInterceptorFactoryChain(TcpConnectionInterceptorFactoryChain interceptorFactoryChain) |
void |
setLocalAddress(String localAddress) |
void |
setLookupHost(boolean lookupHost) |
void |
setMapper(TcpMessageMapper mapper) |
void |
setNioConnectionSupport(TcpNioConnectionSupport tcpNioSupport)
Rare property - not exposed through namespace
|
void |
setPort(int port) |
void |
setReadDelay(long readDelay) |
void |
setSerializer(Serializer<?> serializer) |
void |
setSingleUse(boolean singleUse) |
void |
setSocketFactorySupport(TcpSocketFactorySupport tcpSocketFactorySupport) |
void |
setSocketSupport(TcpSocketSupport tcpSocketSupport) |
void |
setSoKeepAlive(boolean soKeepAlive) |
void |
setSoLinger(int soLinger) |
void |
setSoReceiveBufferSize(int soReceiveBufferSize) |
void |
setSoSendBufferSize(int soSendBufferSize) |
void |
setSoTcpNoDelay(boolean soTcpNoDelay) |
void |
setSoTimeout(int soTimeout) |
void |
setSoTrafficClass(int soTrafficClass) |
void |
setSslContextSupport(TcpSSLContextSupport sslContextSupport) |
void |
setTaskExecutor(Executor taskExecutor) |
void |
setType(String type) |
void |
setUsingDirectBuffers(boolean usingDirectBuffers) |
void |
setUsingNio(boolean usingNio) |
void |
start() |
void |
stop() |
void |
stop(Runnable callback) |
afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setSingletonpublic final void setBeanFactory(BeanFactory beanFactory)
setBeanFactory in interface BeanFactoryAwaresetBeanFactory in class AbstractFactoryBean<AbstractConnectionFactory>public Class<?> getObjectType()
getObjectType in interface FactoryBean<AbstractConnectionFactory>getObjectType in class AbstractFactoryBean<AbstractConnectionFactory>protected AbstractConnectionFactory createInstance() throws Exception
createInstance in class AbstractFactoryBean<AbstractConnectionFactory>Exceptionpublic void setPort(int port)
port - the port to setpublic void setHost(String host)
host - the host to setpublic void setType(String type)
type - the type to setpublic void setLocalAddress(String localAddress)
localAddress - The local addres..AbstractServerConnectionFactory.setLocalAddress(java.lang.String)public void setSoTimeout(int soTimeout)
soTimeout - The timeout.AbstractConnectionFactory.setSoTimeout(int)public void setSoReceiveBufferSize(int soReceiveBufferSize)
soReceiveBufferSize - The receive buffer size.AbstractConnectionFactory.setSoReceiveBufferSize(int)public void setSoSendBufferSize(int soSendBufferSize)
soSendBufferSize - The send buffer size.AbstractConnectionFactory.setSoSendBufferSize(int)public void setSoTcpNoDelay(boolean soTcpNoDelay)
soTcpNoDelay - The TCP no delay to set.AbstractConnectionFactory.setSoTcpNoDelay(boolean)public void setSoLinger(int soLinger)
soLinger - The SO Linger to set.AbstractConnectionFactory.setSoLinger(int)public void setSoKeepAlive(boolean soKeepAlive)
soKeepAlive - The SO keepalive to set.AbstractConnectionFactory.setSoKeepAlive(boolean)public void setSoTrafficClass(int soTrafficClass)
soTrafficClass - The SO traffic class to set.AbstractConnectionFactory.setSoTrafficClass(int)public void setUsingNio(boolean usingNio)
usingNio - the usingNio to setpublic void setUsingDirectBuffers(boolean usingDirectBuffers)
usingDirectBuffers - the usingDirectBuffers to set.TcpNioServerConnectionFactory.setUsingDirectBuffers(boolean)public void setTaskExecutor(Executor taskExecutor)
taskExecutor - The task executor.AbstractConnectionFactory.setTaskExecutor(java.util.concurrent.Executor)public void setDeserializer(Deserializer<?> deserializer)
deserializer - The deserializer.AbstractConnectionFactory.setDeserializer(org.springframework.core.serializer.Deserializer)public void setSerializer(Serializer<?> serializer)
serializer - The serializer.AbstractConnectionFactory.setSerializer(org.springframework.core.serializer.Serializer)public void setMapper(TcpMessageMapper mapper)
mapper - The mapper.AbstractConnectionFactory.setMapper(org.springframework.integration.ip.tcp.connection.TcpMessageMapper)public void setSingleUse(boolean singleUse)
singleUse - The singleUse to set.AbstractConnectionFactory.setSingleUse(boolean)public void setBacklog(int backlog)
backlog - The backlog.AbstractServerConnectionFactory.setBacklog(int)public void setInterceptorFactoryChain(TcpConnectionInterceptorFactoryChain interceptorFactoryChain)
interceptorFactoryChain - The interceptor factory chain.AbstractConnectionFactory.setInterceptorFactoryChain(org.springframework.integration.ip.tcp.connection.TcpConnectionInterceptorFactoryChain)public void setLookupHost(boolean lookupHost)
lookupHost - The lookupHost to set.AbstractConnectionFactory.setLookupHost(boolean)public void start()
start in interface LifecycleAbstractConnectionFactory.start()public void stop()
stop in interface LifecycleAbstractConnectionFactory.stop()public int getPhase()
getPhase in interface PhasedAbstractConnectionFactory.getPhase()public boolean isAutoStartup()
isAutoStartup in interface SmartLifecycleAbstractConnectionFactory.isAutoStartup()public void stop(Runnable callback)
stop in interface SmartLifecyclecallback - The Runnable to invoke.AbstractConnectionFactory.stop(java.lang.Runnable)public void setBeanName(String name)
setBeanName in interface BeanNameAwarepublic void setApplySequence(boolean applySequence)
applySequence - the applySequence to setpublic void setReadDelay(long readDelay)
public void setSslContextSupport(TcpSSLContextSupport sslContextSupport)
public void setSocketSupport(TcpSocketSupport tcpSocketSupport)
public void setNioConnectionSupport(TcpNioConnectionSupport tcpNioSupport)
tcpNioSupport - The tcpNioSupport to set.public void setSocketFactorySupport(TcpSocketFactorySupport tcpSocketFactorySupport)
public void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher)
setApplicationEventPublisher in interface ApplicationEventPublisherAware