org.springframework.data.gemfire.client
Class ClientCacheFactoryBean
java.lang.Object
org.springframework.data.gemfire.CacheFactoryBean
org.springframework.data.gemfire.client.ClientCacheFactoryBean
- All Implemented Interfaces:
- Aware, BeanClassLoaderAware, BeanFactoryAware, BeanNameAware, DisposableBean, FactoryBean<com.gemstone.gemfire.cache.Cache>, 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).
Fields inherited from class org.springframework.data.gemfire.CacheFactoryBean |
beanClassLoader, beanFactory, beanName, cache, cacheXml, close, copyOnRead, criticalHeapPercentage, dynamicRegionSupport, evictionHeapPercentage, factoryLocator, gatewayConflictResolver, jndiDataSources, lockLease, lockTimeout, log, messageSyncInterval, pdxDiskStoreName, pdxIgnoreUnreadFields, pdxPersistent, pdxReadSerialized, pdxSerializer, properties, searchTimeout, transactionListeners, transactionWriter, useBeanFactoryLocator |
Methods inherited from class org.springframework.data.gemfire.CacheFactoryBean |
destroy, getBeanClassLoader, getBeanFactory, getBeanFactoryLocator, getBeanName, getCacheXml, getCopyOnRead, getCriticalHeapPercentage, getDynamicRegionSupport, getEvictionHeapPercentage, getGatewayConflictResolver, getJndiDataSources, getLockLease, getLockTimeout, getMessageSyncInterval, getObject, getObjectType, getPdxDiskStoreName, getPdxIgnoreUnreadFields, getPdxPersistent, getPdxReadSerialized, getPdxSerializer, getSearchTimeout, getTransactionListeners, getTransactionWriter, isSingleton, registerTransactionListeners, registerTransactionWriter, setBeanClassLoader, setBeanFactory, setBeanName, setCacheXml, setClose, setCopyOnRead, setCriticalHeapPercentage, setDynamicRegionSupport, setEvictionHeapPercentage, setGatewayConflictResolver, 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 |
readyForEvents
protected Boolean readyForEvents
ClientCacheFactoryBean
public ClientCacheFactoryBean()
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
getProperties
public Properties getProperties()
- Overrides:
getProperties
in class CacheFactoryBean
- Returns:
- the properties
setPoolName
public void setPoolName(String poolName)
- Sets the pool name used by this client.
- Parameters:
poolName
-
setReadyForEvents
public void setReadyForEvents(Boolean readyForEvents)
- Set the readyForEvents event flag.
- Parameters:
readyForEvents
-
getReadyForEvents
public Boolean getReadyForEvents()
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