org.springframework.data.gemfire.client
Class ClientCacheFactoryBean

java.lang.Object
  extended by org.springframework.data.gemfire.CacheFactoryBean
      extended by org.springframework.data.gemfire.client.ClientCacheFactoryBean
All Implemented Interfaces:
Aware, BeanClassLoaderAware, BeanFactoryAware, BeanNameAware, DisposableBean, FactoryBean<com.gemstone.gemfire.cache.GemFireCache>, InitializingBean, PersistenceExceptionTranslator

public class ClientCacheFactoryBean
extends CacheFactoryBean

FactoryBean dedicated to creating client caches (caches for client JVMs). Acts an utility class (as client caches are a subset with a particular configuration of the generic cache).


Nested Class Summary
 
Nested classes/interfaces inherited from class org.springframework.data.gemfire.CacheFactoryBean
CacheFactoryBean.DynamicRegionSupport, CacheFactoryBean.JndiDataSource
 
Field Summary
 
Fields inherited from class org.springframework.data.gemfire.CacheFactoryBean
beanClassLoader, beanFactory, beanName, cache, cacheXml, copyOnRead, criticalHeapPercentage, dynamicRegionSupport, evictionHeapPercentage, factoryLocator, jndiDataSources, lockLease, lockTimeout, log, messageSyncInterval, pdxDiskStoreName, pdxIgnoreUnreadFields, pdxPersistent, pdxReadSerialized, pdxSerializer, properties, searchTimeout, transactionListeners, transactionWriter, useBeanFactoryLocator
 
Constructor Summary
ClientCacheFactoryBean()
           
 
Method Summary
protected  void applyPdxOptions(Object factory)
          Sets the PDX properties for the given object.
protected  com.gemstone.gemfire.cache.GemFireCache createCache(Object factory)
           
protected  Object createFactory(Properties props)
           
protected  com.gemstone.gemfire.cache.GemFireCache fetchCache()
           
 void setPool(com.gemstone.gemfire.cache.client.Pool pool)
          Sets the pool used by this client.
 void setPoolName(String poolName)
          Sets the pool name used by this client.
 
Methods inherited from class org.springframework.data.gemfire.CacheFactoryBean
afterPropertiesSet, applyInternalCacheOptions, destroy, getBeanFactory, getObject, getObjectType, isSingleton, mergeProperties, registerTransactionListeners, registerTransactionWriter, setBeanClassLoader, setBeanFactory, setBeanName, setCacheXml, setCopyOnRead, setCriticalHeapPercentage, setDynamicRegionSupport, setEvictionHeapPercentage, setJndiDataSources, setLockLease, setLockTimeout, setMessageSyncInterval, setPdxDiskStoreName, setPdxIgnoreUnreadFields, setPdxPersistent, setPdxReadSerialized, setPdxSerializer, setProperties, setSearchTimeout, setTransactionListeners, setTransactionWriter, setUseBeanFactoryLocator, translateExceptionIfPossible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientCacheFactoryBean

public ClientCacheFactoryBean()
Method Detail

createCache

protected com.gemstone.gemfire.cache.GemFireCache createCache(Object factory)
Overrides:
createCache in class CacheFactoryBean

createFactory

protected Object createFactory(Properties props)
Overrides:
createFactory in class CacheFactoryBean

fetchCache

protected com.gemstone.gemfire.cache.GemFireCache fetchCache()
Overrides:
fetchCache in class CacheFactoryBean

setPoolName

public void setPoolName(String poolName)
Sets the pool name used by this client.

Parameters:
poolName -

setPool

public void setPool(com.gemstone.gemfire.cache.client.Pool pool)
Sets the pool used by this client.

Parameters:
pool -

applyPdxOptions

protected void applyPdxOptions(Object factory)
Description copied from class: CacheFactoryBean
Sets the PDX properties for the given object. Note this is implementation specific as it depends on the type of the factory passed in.

Overrides:
applyPdxOptions in class CacheFactoryBean