public class TcpConnectionFactoryFactoryBean extends AbstractFactoryBean<AbstractConnectionFactory> implements Lifecycle, BeanNameAware, ApplicationEventPublisherAware, ApplicationContextAware
logger
OBJECT_TYPE_ATTRIBUTE
Constructor and Description |
---|
TcpConnectionFactoryFactoryBean() |
TcpConnectionFactoryFactoryBean(String type) |
Modifier and Type | Method and Description |
---|---|
protected AbstractConnectionFactory |
createInstance() |
Class<?> |
getObjectType() |
boolean |
isRunning() |
void |
setApplicationContext(ApplicationContext applicationContext) |
void |
setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher) |
void |
setApplySequence(boolean applySequence) |
void |
setBacklog(int backlog) |
void |
setBeanName(String name) |
void |
setConnectTimeout(int connectTimeout) |
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 |
setNetConnectionSupport(TcpNetConnectionSupport tcpNetSupport) |
void |
setNioConnectionSupport(TcpNioConnectionSupport tcpNioSupport) |
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 |
setSslHandshakeTimeout(Integer sslHandshakeTimeout)
Set the SSL handshake timeout (only used with SSL and NIO).
|
void |
setTaskExecutor(Executor taskExecutor) |
void |
setType(String type) |
void |
setUsingDirectBuffers(boolean usingDirectBuffers) |
void |
setUsingNio(boolean usingNio) |
void |
start() |
void |
stop() |
afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
public TcpConnectionFactoryFactoryBean()
public TcpConnectionFactoryFactoryBean(String type)
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
setApplicationContext
in interface ApplicationContextAware
BeansException
public Class<?> getObjectType()
getObjectType
in interface FactoryBean<AbstractConnectionFactory>
getObjectType
in class AbstractFactoryBean<AbstractConnectionFactory>
protected AbstractConnectionFactory createInstance()
createInstance
in class AbstractFactoryBean<AbstractConnectionFactory>
public void setPort(int port)
port
- the port to setpublic void setHost(String host)
host
- the host to setpublic final void setType(String type)
type
- the type to setpublic void setLocalAddress(String localAddress)
localAddress
- The local address.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(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(TcpConnectionInterceptorFactoryChain)
public void setLookupHost(boolean lookupHost)
lookupHost
- The lookupHost to set.AbstractConnectionFactory.setLookupHost(boolean)
public void start()
start
in interface Lifecycle
AbstractConnectionFactory.start()
public void stop()
stop
in interface Lifecycle
AbstractConnectionFactory.stop()
public void setBeanName(String name)
setBeanName
in interface BeanNameAware
public 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)
public void setNetConnectionSupport(TcpNetConnectionSupport tcpNetSupport)
public void setSocketFactorySupport(TcpSocketFactorySupport tcpSocketFactorySupport)
public void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher)
setApplicationEventPublisher
in interface ApplicationEventPublisherAware
public void setConnectTimeout(int connectTimeout)
public void setSslHandshakeTimeout(Integer sslHandshakeTimeout)
sslHandshakeTimeout
- the timeout.