org.springframework.data.gemfire.client
Class PoolFactoryBean
java.lang.Object
org.springframework.data.gemfire.client.PoolFactoryBean
- All Implemented Interfaces:
- BeanNameAware, DisposableBean, FactoryBean<Pool>, InitializingBean
public class PoolFactoryBean
- extends Object
- implements FactoryBean<Pool>, InitializingBean, DisposableBean, BeanNameAware
Factory bean for easy declaration and configuration of a GemFire pool.
If a new pool is created, its life-cycle is bound to that of the declaring container.
Note that if the pool already exists, it will be returned as is, without any
modifications and its life cycle untouched by this factory.
- Author:
- Costin Leau
- See Also:
PoolManager
,
PoolFactory
,
Pool
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PoolFactoryBean
public PoolFactoryBean()
getObjectType
public Class<?> getObjectType()
- Specified by:
getObjectType
in interface FactoryBean<Pool>
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interface FactoryBean<Pool>
getObject
public Pool getObject()
throws Exception
- Specified by:
getObject
in interface FactoryBean<Pool>
- Throws:
Exception
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet
in interface InitializingBean
- Throws:
Exception
destroy
public void destroy()
throws Exception
- Specified by:
destroy
in interface DisposableBean
- Throws:
Exception
setBeanName
public void setBeanName(String name)
- Specified by:
setBeanName
in interface BeanNameAware
setPool
public void setPool(Pool pool)
- Parameters:
pool
- the pool to set
setName
public void setName(String name)
- Parameters:
name
- the name to set
setLocators
public void setLocators(Collection<PoolConnection> locators)
- Parameters:
locators
- the locators to set
setServers
public void setServers(Collection<PoolConnection> servers)
- Parameters:
servers
- the servers to set
setKeepAlive
public void setKeepAlive(boolean keepAlive)
- Parameters:
keepAlive
- the keepAlive to set
setFreeConnectionTimeout
public void setFreeConnectionTimeout(int freeConnectionTimeout)
- Parameters:
freeConnectionTimeout
- the freeConnectionTimeout to set
setIdleTimeout
public void setIdleTimeout(long idleTimeout)
- Parameters:
idleTimeout
- the idleTimeout to set
setLoadConditioningInterval
public void setLoadConditioningInterval(int loadConditioningInterval)
- Parameters:
loadConditioningInterval
- the loadConditioningInterval to set
setMaxConnections
public void setMaxConnections(int maxConnections)
- Parameters:
maxConnections
- the maxConnections to set
setMinConnections
public void setMinConnections(int minConnections)
- Parameters:
minConnections
- the minConnections to set
setPingInterval
public void setPingInterval(long pingInterval)
- Parameters:
pingInterval
- the pingInterval to set
setReadTimeout
public void setReadTimeout(int readTimeout)
- Parameters:
readTimeout
- the readTimeout to set
setRetryAttempts
public void setRetryAttempts(int retryAttempts)
- Parameters:
retryAttempts
- the retryAttempts to set
setServerGroup
public void setServerGroup(String serverGroup)
- Parameters:
serverGroup
- the serverGroup to set
setSocketBufferSize
public void setSocketBufferSize(int socketBufferSize)
- Parameters:
socketBufferSize
- the socketBufferSize to set
setStatisticInterval
public void setStatisticInterval(int statisticInterval)
- Parameters:
statisticInterval
- the statisticInterval to set
setSubscriptionAckInterval
public void setSubscriptionAckInterval(int subscriptionAckInterval)
- Parameters:
subscriptionAckInterval
- the subscriptionAckInterval to set
setSubscriptionEnabled
public void setSubscriptionEnabled(boolean subscriptionEnabled)
- Parameters:
subscriptionEnabled
- the subscriptionEnabled to set
setSubscriptionMessageTrackingTimeout
public void setSubscriptionMessageTrackingTimeout(int subscriptionMessageTrackingTimeout)
- Parameters:
subscriptionMessageTrackingTimeout
- the subscriptionMessageTrackingTimeout to set
setSubscriptionRedundancy
public void setSubscriptionRedundancy(int subscriptionRedundancy)
- Parameters:
subscriptionRedundancy
- the subscriptionRedundancy to set
setThreadLocalConnections
public void setThreadLocalConnections(boolean threadLocalConnections)
- Parameters:
threadLocalConnections
- the threadLocalConnections to set
Copyright © 2010 SpringSource, a division of VMware. All Rights Reserved.