public class TcpConnectionFactoryFactoryBean extends org.springframework.beans.factory.config.AbstractFactoryBean<AbstractConnectionFactory> implements org.springframework.context.SmartLifecycle, org.springframework.beans.factory.BeanNameAware, org.springframework.context.ApplicationEventPublisherAware
| Constructor and Description |
|---|
TcpConnectionFactoryFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
protected AbstractConnectionFactory |
createInstance() |
java.lang.Class<?> |
getObjectType() |
int |
getPhase() |
boolean |
isAutoStartup() |
boolean |
isRunning() |
void |
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) |
void |
setApplySequence(boolean applySequence) |
void |
setBacklog(int backlog) |
void |
setBeanName(java.lang.String name) |
void |
setDeserializer(org.springframework.core.serializer.Deserializer<?> deserializer) |
void |
setHost(java.lang.String host) |
void |
setInterceptorFactoryChain(TcpConnectionInterceptorFactoryChain interceptorFactoryChain) |
void |
setLocalAddress(java.lang.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 |
setSerializer(org.springframework.core.serializer.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(java.util.concurrent.Executor taskExecutor) |
void |
setType(java.lang.String type) |
void |
setUsingDirectBuffers(boolean usingDirectBuffers) |
void |
setUsingNio(boolean usingNio) |
void |
start() |
void |
stop() |
void |
stop(java.lang.Runnable callback) |
public java.lang.Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<AbstractConnectionFactory>getObjectType in class org.springframework.beans.factory.config.AbstractFactoryBean<AbstractConnectionFactory>protected AbstractConnectionFactory createInstance() throws java.lang.Exception
createInstance in class org.springframework.beans.factory.config.AbstractFactoryBean<AbstractConnectionFactory>java.lang.Exceptionpublic void setPort(int port)
port - the port to setpublic void setHost(java.lang.String host)
host - the host to setpublic void setType(java.lang.String type)
type - the type to setpublic void setLocalAddress(java.lang.String localAddress)
localAddress - AbstractServerConnectionFactory.setLocalAddress(java.lang.String)public void setSoTimeout(int soTimeout)
soTimeout - AbstractConnectionFactory.setSoTimeout(int)public void setSoReceiveBufferSize(int soReceiveBufferSize)
soReceiveBufferSize - AbstractConnectionFactory.setSoReceiveBufferSize(int)public void setSoSendBufferSize(int soSendBufferSize)
soSendBufferSize - AbstractConnectionFactory.setSoSendBufferSize(int)public void setSoTcpNoDelay(boolean soTcpNoDelay)
soTcpNoDelay - AbstractConnectionFactory.setSoTcpNoDelay(boolean)public void setSoLinger(int soLinger)
soLinger - AbstractConnectionFactory.setSoLinger(int)public void setSoKeepAlive(boolean soKeepAlive)
soKeepAlive - AbstractConnectionFactory.setSoKeepAlive(boolean)public void setSoTrafficClass(int soTrafficClass)
soTrafficClass - AbstractConnectionFactory.setSoTrafficClass(int)public void setUsingNio(boolean usingNio)
usingNio - the usingNio to setpublic void setUsingDirectBuffers(boolean usingDirectBuffers)
usingDirectBuffers - TcpNioServerConnectionFactory.setUsingDirectBuffers(boolean)public void setTaskExecutor(java.util.concurrent.Executor taskExecutor)
taskExecutor - AbstractConnectionFactory.setTaskExecutor(java.util.concurrent.Executor)public void setDeserializer(org.springframework.core.serializer.Deserializer<?> deserializer)
deserializer - AbstractConnectionFactory.setDeserializer(org.springframework.core.serializer.Deserializer)public void setSerializer(org.springframework.core.serializer.Serializer<?> serializer)
serializer - AbstractConnectionFactory.setSerializer(org.springframework.core.serializer.Serializer)public void setMapper(TcpMessageMapper mapper)
mapper - AbstractConnectionFactory.setMapper(org.springframework.integration.ip.tcp.connection.TcpMessageMapper)public void setSingleUse(boolean singleUse)
singleUse - AbstractConnectionFactory.setSingleUse(boolean)public void setBacklog(int backlog)
backlog - AbstractServerConnectionFactory.setBacklog(int)public void setInterceptorFactoryChain(TcpConnectionInterceptorFactoryChain interceptorFactoryChain)
interceptorFactoryChain - AbstractConnectionFactory.setInterceptorFactoryChain(org.springframework.integration.ip.tcp.connection.TcpConnectionInterceptorFactoryChain)public void setLookupHost(boolean lookupHost)
lookupHost - AbstractConnectionFactory.setLookupHost(boolean)public void start()
start in interface org.springframework.context.LifecycleAbstractConnectionFactory.start()public void stop()
stop in interface org.springframework.context.LifecycleAbstractConnectionFactory.stop()public int getPhase()
getPhase in interface org.springframework.context.PhasedAbstractConnectionFactory.getPhase()public boolean isAutoStartup()
isAutoStartup in interface org.springframework.context.SmartLifecycleAbstractConnectionFactory.isAutoStartup()public void stop(java.lang.Runnable callback)
stop in interface org.springframework.context.SmartLifecyclecallback - AbstractConnectionFactory.stop(java.lang.Runnable)public boolean isRunning()
isRunning in interface org.springframework.context.Lifecyclepublic void setBeanName(java.lang.String name)
setBeanName in interface org.springframework.beans.factory.BeanNameAwarepublic void setApplySequence(boolean applySequence)
applySequence - the applySequence to setpublic void setSslContextSupport(TcpSSLContextSupport sslContextSupport)
public void setSocketSupport(TcpSocketSupport tcpSocketSupport)
public void setNioConnectionSupport(TcpNioConnectionSupport tcpNioSupport)
tcpNioSupport - public void setSocketFactorySupport(TcpSocketFactorySupport tcpSocketFactorySupport)
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
setApplicationEventPublisher in interface org.springframework.context.ApplicationEventPublisherAware