|
Spring Integration | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.ip.tcp.connection.AbstractConnectionFactory
org.springframework.integration.ip.tcp.connection.AbstractClientConnectionFactory
org.springframework.integration.ip.tcp.connection.CachingClientConnectionFactory
public class CachingClientConnectionFactory
| Field Summary |
|---|
| Fields inherited from class org.springframework.integration.ip.tcp.connection.AbstractConnectionFactory |
|---|
DEFAULT_REPLY_TIMEOUT, lifecycleMonitor |
| Fields inherited from class org.springframework.integration.context.IntegrationObjectSupport |
|---|
logger |
| Constructor Summary | |
|---|---|
CachingClientConnectionFactory(AbstractClientConnectionFactory target,
int poolSize)
|
|
| Method Summary | |
|---|---|
void |
close()
Closes the server. |
boolean |
equals(java.lang.Object obj)
|
void |
forceClose(TcpConnection connection)
Force close the connection and null the field if it's a shared connection. |
int |
getActiveCount()
|
int |
getAllocatedCount()
|
java.lang.String |
getComponentType()
Subclasses may implement this method to provide component type information. |
org.springframework.core.serializer.Deserializer<?> |
getDeserializer()
|
java.lang.String |
getHost()
|
int |
getIdleCount()
|
TcpListener |
getListener()
|
TcpMessageMapper |
getMapper()
|
int |
getPhase()
|
int |
getPoolSize()
|
int |
getPort()
|
TcpSender |
getSender()
|
org.springframework.core.serializer.Serializer<?> |
getSerializer()
|
int |
getSoLinger()
|
int |
getSoReceiveBufferSize()
|
int |
getSoSendBufferSize()
|
int |
getSoTimeout()
|
int |
getSoTrafficClass()
|
int |
hashCode()
|
boolean |
isAutoStartup()
We are controlled by the startup options of the bound endpoint. |
boolean |
isLookupHost()
|
boolean |
isRunning()
|
boolean |
isSingleUse()
|
boolean |
isSoKeepAlive()
|
boolean |
isSoTcpNoDelay()
|
TcpConnection |
obtainConnection()
|
void |
registerListener(TcpListener listener)
Registers a TcpListener to receive messages after the payload has been converted from the input data. |
void |
registerSender(TcpSender sender)
Registers a TcpSender; for server sockets, used to provide connection information so a sender can be used to reply to incoming messages. |
void |
setComponentName(java.lang.String componentName)
Sets the name of this component. |
void |
setConnectionWaitTimeout(int connectionWaitTimeout)
|
void |
setDeserializer(org.springframework.core.serializer.Deserializer<?> deserializer)
|
void |
setInterceptorFactoryChain(TcpConnectionInterceptorFactoryChain interceptorFactoryChain)
|
void |
setLookupHost(boolean lookupHost)
If true, DNS reverse lookup is done on the remote ip address. |
void |
setMapper(TcpMessageMapper mapper)
|
void |
setPoolSize(int poolSize)
|
void |
setSerializer(org.springframework.core.serializer.Serializer<?> serializer)
|
void |
setSingleUse(boolean singleUse)
If true, sockets created by this factory will be used once. |
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 |
setTaskExecutor(java.util.concurrent.Executor taskExecutor)
|
void |
start()
|
void |
stop()
Stops the server. |
void |
stop(java.lang.Runnable callback)
|
| Methods inherited from class org.springframework.integration.ip.tcp.connection.AbstractClientConnectionFactory |
|---|
getConnection, getTheConnection, initializeConnection, setTheConnection |
| Methods inherited from class org.springframework.integration.ip.tcp.connection.AbstractConnectionFactory |
|---|
addConnection, checkActive, doAccept, getTaskExecutor, getTcpSocketSupport, harvestClosedConnections, isActive, processNioSelections, setActive, setNioHarvestInterval, setSocketAttributes, setTcpSocketSupport, wrapConnection |
| Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport |
|---|
afterPropertiesSet, getBeanFactory, getComponentName, getConversionService, getTaskScheduler, onInit, setBeanFactory, setBeanName, setConversionService, setTaskScheduler, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CachingClientConnectionFactory(AbstractClientConnectionFactory target,
int poolSize)
| Method Detail |
|---|
public void setConnectionWaitTimeout(int connectionWaitTimeout)
public void setPoolSize(int poolSize)
setPoolSize in class AbstractConnectionFactorypublic int getPoolSize()
getPoolSize in class AbstractConnectionFactorypublic int getIdleCount()
public int getActiveCount()
public int getAllocatedCount()
public TcpConnection obtainConnection()
throws java.lang.Exception
obtainConnection in class AbstractClientConnectionFactoryjava.lang.Exceptionpublic boolean isRunning()
isRunning in interface org.springframework.context.LifecycleisRunning in class AbstractConnectionFactorypublic void close()
AbstractConnectionFactory
close in class AbstractConnectionFactorypublic int hashCode()
hashCode in class java.lang.Objectpublic void setComponentName(java.lang.String componentName)
IntegrationObjectSupport
setComponentName in class IntegrationObjectSupportpublic java.lang.String getComponentType()
IntegrationObjectSupport
getComponentType in interface NamedComponentgetComponentType in class IntegrationObjectSupportpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int getSoTimeout()
getSoTimeout in class AbstractConnectionFactorypublic void setSoTimeout(int soTimeout)
setSoTimeout in class AbstractConnectionFactorysoTimeout - the soTimeout to setpublic int getSoReceiveBufferSize()
getSoReceiveBufferSize in class AbstractConnectionFactorypublic void setSoReceiveBufferSize(int soReceiveBufferSize)
setSoReceiveBufferSize in class AbstractConnectionFactorysoReceiveBufferSize - the soReceiveBufferSize to setpublic int getSoSendBufferSize()
getSoSendBufferSize in class AbstractConnectionFactorypublic void setSoSendBufferSize(int soSendBufferSize)
setSoSendBufferSize in class AbstractConnectionFactorysoSendBufferSize - the soSendBufferSize to setpublic boolean isSoTcpNoDelay()
isSoTcpNoDelay in class AbstractConnectionFactorypublic void setSoTcpNoDelay(boolean soTcpNoDelay)
setSoTcpNoDelay in class AbstractConnectionFactorysoTcpNoDelay - the soTcpNoDelay to setpublic int getSoLinger()
getSoLinger in class AbstractConnectionFactorypublic void setSoLinger(int soLinger)
setSoLinger in class AbstractConnectionFactorysoLinger - the soLinger to setpublic boolean isSoKeepAlive()
isSoKeepAlive in class AbstractConnectionFactorypublic void setSoKeepAlive(boolean soKeepAlive)
setSoKeepAlive in class AbstractConnectionFactorysoKeepAlive - the soKeepAlive to setpublic int getSoTrafficClass()
getSoTrafficClass in class AbstractConnectionFactorypublic void setSoTrafficClass(int soTrafficClass)
setSoTrafficClass in class AbstractConnectionFactorysoTrafficClass - the soTrafficClass to setpublic java.lang.String getHost()
getHost in class AbstractConnectionFactorypublic int getPort()
getPort in class AbstractConnectionFactorypublic TcpListener getListener()
getListener in class AbstractConnectionFactorypublic TcpSender getSender()
getSender in class AbstractConnectionFactorypublic org.springframework.core.serializer.Serializer<?> getSerializer()
getSerializer in class AbstractConnectionFactorypublic org.springframework.core.serializer.Deserializer<?> getDeserializer()
getDeserializer in class AbstractConnectionFactorypublic TcpMessageMapper getMapper()
getMapper in class AbstractConnectionFactorypublic void registerListener(TcpListener listener)
AbstractConnectionFactory
registerListener in class AbstractConnectionFactorylistener - the TcpListener.public void registerSender(TcpSender sender)
AbstractConnectionFactory
registerSender in class AbstractConnectionFactorysender - The senderpublic void setTaskExecutor(java.util.concurrent.Executor taskExecutor)
setTaskExecutor in class AbstractConnectionFactorytaskExecutor - the taskExecutor to setpublic void setDeserializer(org.springframework.core.serializer.Deserializer<?> deserializer)
setDeserializer in class AbstractConnectionFactorydeserializer - the deserializer to setpublic void setSerializer(org.springframework.core.serializer.Serializer<?> serializer)
setSerializer in class AbstractConnectionFactoryserializer - the serializer to setpublic void setMapper(TcpMessageMapper mapper)
setMapper in class AbstractConnectionFactorymapper - the mapper to set; defaults to a TcpMessageMapperpublic boolean isSingleUse()
isSingleUse in class AbstractConnectionFactorypublic void setSingleUse(boolean singleUse)
AbstractConnectionFactory
setSingleUse in class AbstractConnectionFactorypublic void setInterceptorFactoryChain(TcpConnectionInterceptorFactoryChain interceptorFactoryChain)
setInterceptorFactoryChain in class AbstractConnectionFactorypublic void setLookupHost(boolean lookupHost)
AbstractConnectionFactory
setLookupHost in class AbstractConnectionFactorylookupHost - the lookupHost to setpublic boolean isLookupHost()
isLookupHost in class AbstractConnectionFactorypublic void forceClose(TcpConnection connection)
AbstractClientConnectionFactory
forceClose in class AbstractClientConnectionFactorypublic void start()
start in interface org.springframework.context.Lifecyclestart in class AbstractConnectionFactorypublic void stop()
AbstractConnectionFactory
stop in interface org.springframework.context.Lifecyclestop in class AbstractConnectionFactorypublic int getPhase()
getPhase in interface org.springframework.context.PhasedgetPhase in class AbstractConnectionFactorypublic boolean isAutoStartup()
AbstractConnectionFactory
isAutoStartup in interface org.springframework.context.SmartLifecycleisAutoStartup in class AbstractConnectionFactorypublic void stop(java.lang.Runnable callback)
stop in interface org.springframework.context.SmartLifecyclestop in class AbstractConnectionFactory
|
Spring Integration | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||