org.springframework.data.gemfire.client
Class PoolFactoryBean

java.lang.Object
  extended by org.springframework.data.gemfire.client.PoolFactoryBean
All Implemented Interfaces:
Aware, BeanClassLoaderAware, BeanFactoryAware, BeanNameAware, DisposableBean, FactoryBean<Pool>, InitializingBean

public class PoolFactoryBean
extends Object
implements FactoryBean<Pool>, InitializingBean, DisposableBean, BeanNameAware, BeanClassLoaderAware, BeanFactoryAware

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.

See Also:
PoolManager, PoolFactory, Pool

Constructor Summary
PoolFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
 Pool getObject()
           
 Class<?> getObjectType()
           
 boolean isSingleton()
           
 void setBeanClassLoader(ClassLoader classLoader)
           
 void setBeanFactory(BeanFactory beanFactory)
           
 void setBeanName(String name)
           
 void setFreeConnectionTimeout(int freeConnectionTimeout)
           
 void setIdleTimeout(long idleTimeout)
           
 void setKeepAlive(boolean keepAlive)
           
 void setLoadConditioningInterval(int loadConditioningInterval)
           
 void setLocators(Collection<PoolConnection> locators)
           
 void setMaxConnections(int maxConnections)
           
 void setMinConnections(int minConnections)
           
 void setMultiUserAuthentication(boolean multiUserAuthentication)
           
 void setName(String name)
           
 void setPingInterval(long pingInterval)
           
 void setPool(Pool pool)
           
 void setPrSingleHopEnabled(boolean prSingleHopEnabled)
           
 void setReadTimeout(int readTimeout)
           
 void setRetryAttempts(int retryAttempts)
           
 void setServerGroup(String serverGroup)
           
 void setServers(Collection<PoolConnection> servers)
           
 void setSocketBufferSize(int socketBufferSize)
           
 void setStatisticInterval(int statisticInterval)
           
 void setSubscriptionAckInterval(int subscriptionAckInterval)
           
 void setSubscriptionEnabled(boolean subscriptionEnabled)
           
 void setSubscriptionMessageTrackingTimeout(int subscriptionMessageTrackingTimeout)
           
 void setSubscriptionRedundancy(int subscriptionRedundancy)
           
 void setThreadLocalConnections(boolean threadLocalConnections)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PoolFactoryBean

public PoolFactoryBean()
Method Detail

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

setBeanClassLoader

public void setBeanClassLoader(ClassLoader classLoader)
Specified by:
setBeanClassLoader in interface BeanClassLoaderAware

setBeanFactory

public void setBeanFactory(BeanFactory beanFactory)
Specified by:
setBeanFactory in interface BeanFactoryAware

setMultiUserAuthentication

public void setMultiUserAuthentication(boolean multiUserAuthentication)
Parameters:
multiUserAuthentication - the multiUserAuthentication to set

setPrSingleHopEnabled

public void setPrSingleHopEnabled(boolean prSingleHopEnabled)
Parameters:
prSingleHopEnabled - the prSingleHopEnabled to set