Class ClientCacheConfiguration
java.lang.Object
org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
org.springframework.data.gemfire.config.annotation.AbstractCacheConfiguration
org.springframework.data.gemfire.config.annotation.ClientCacheConfiguration
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanClassLoaderAware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.context.annotation.ImportAware
,org.springframework.context.EnvironmentAware
Spring
Configuration
class used to construct, configure and initialize
a ClientCache
instance in a Spring application context.- Since:
- 1.9.0
- See Also:
-
Annotation
ClientCache
Pool
SocketFactory
CacheServer
BeanFactory
BeanDefinition
BeanDefinitionBuilder
Bean
Configuration
AnnotationAttributes
AnnotationMetadata
CacheFactoryBean
ClientCacheFactoryBean
AbstractCacheConfiguration
ClientCacheConfigurer
ClientRegionPoolBeanFactoryPostProcessor
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
AbstractAnnotationConfigSupport.TypeResolver<T>
-
Field Summary
Fields inherited from class org.springframework.data.gemfire.config.annotation.AbstractCacheConfiguration
DEFAULT_CLOSE, DEFAULT_COPY_ON_READ, DEFAULT_LOCATORS, DEFAULT_LOG_LEVEL, DEFAULT_MCAST_PORT, DEFAULT_USE_BEAN_FACTORY_LOCATOR
Fields inherited from class org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
CURRENT_THREAD_CONTEXT_CLASS_LOADER, INFRASTRUCTURE_ROLES, ORG_SPRINGFRAMEWORK_DATA_GEMFIRE_PACKAGE, ORG_SPRINGFRAMEWORK_PACKAGE, SPRING_DATA_GEMFIRE_PROPERTY_PREFIX
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
configureCache
(org.springframework.core.type.AnnotationMetadata importMetadata) ConfiguresClientCache
specific settings.protected void
configureInfrastructure
(org.springframework.core.type.AnnotationMetadata importMetadata) Configures Spring container infrastructure components and beans used by Spring Data GemFire to enable Pivotal GemFire or Apache Geode to function properly inside a Spring context.Bean declaration for a single, peerClientCache
instance.protected Class<? extends Annotation>
Returns the cache applicationAnnotation
type pertaining to this configuration.protected org.springframework.beans.factory.BeanFactory
Returns a reference to the SpringBeanFactory
in the current application context.protected String
protected Integer
protected Integer
protected Long
protected Boolean
protected Integer
protected Integer
protected Integer
protected Boolean
protected Long
protected Iterable<ConnectionEndpoint>
protected Iterable<ConnectionEndpoint>
protected Boolean
protected Integer
protected boolean
protected Integer
protected Integer
protected String
protected Integer
protected Integer
protected String
protected Integer
protected Integer
protected Boolean
protected Integer
protected Integer
protected Boolean
protected <T extends CacheFactoryBean>
TConstructs a new instance ofClientCacheFactoryBean
used to create a peerClientCache
.protected ConnectionEndpoint
newConnectionEndpoint
(String host, Integer port) toString()
Returns aString
containing the name of the Spring-configured Apache GeodeClientCache
application.Methods inherited from class org.springframework.data.gemfire.config.annotation.AbstractCacheConfiguration
add, configureCacheFactoryBean, configureOptional, constructCacheFactoryBean, gemfireProperties, getCacheXml, getCopyOnRead, getCriticalHeapPercentage, getCriticalOffHeapPercentage, getEvictionHeapPercentage, getEvictionOffHeapPercentage, getGatewayConflictResolver, getJndiDataSources, getTransactionListeners, getTransactionWriter, isCacheServerApplication, isCacheServerOrPeerCacheApplication, isClientCacheApplication, isClientPeerOrServerCacheApplication, isClose, isPeerCacheApplication, isTypedCacheApplication, locators, logLevel, mcastPort, name, setImportMetadata, startLocator, useBeanFactoryLocator
Methods inherited from class org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
arrayOfPropertyNamesFor, arrayOfPropertyNamesFor, asArrayProperty, cacheClientProperty, cacheCompressionProperty, cacheOffHeapProperty, cachePeerProperty, cacheProperty, cacheServerProperty, clusterProperty, diskStoreProperty, entitiesProperty, gatewayReceiverProperty, gatewaySenderProperty, getAnnotationAttributes, getAnnotationAttributes, getAnnotationAttributes, getAnnotationTypeName, getAnnotationTypeSimpleName, getBeanClassLoader, getEnvironment, getEvaluationContext, getLogger, hasValue, hasValue, hasValue, httpServiceProperty, isAnnotationPresent, isAnnotationPresent, isNotInfrastructureBean, isNotInfrastructureBean, isNotInfrastructureClass, isNotInfrastructureRole, isUserLevelMethod, locatorProperty, logDebug, logDebug, logError, logError, loggingProperty, logInfo, logInfo, logWarning, logWarning, managementProperty, managerProperty, memcachedServiceProperty, namedCacheServerProperty, namedDiskStoreProperty, namedGatewaySenderProperty, namedPoolProperty, newEvaluationContext, newLogger, pdxProperty, poolProperty, propertyName, register, register, requireProperty, resolveAnnotation, resolveBeanClass, resolveBeanClass, resolveBeanClass, resolveBeanClassLoader, resolveBeanClassLoader, resolveBeanClassLoader, resolveBeanClassName, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, safeResolveType, securityProperty, serviceProperty, setBeanClassLoader, setBeanFactory, setEnvironment, sslProperty, statsProperty
-
Field Details
-
DEFAULT_READY_FOR_EVENTS
protected static final boolean DEFAULT_READY_FOR_EVENTS- See Also:
-
DEFAULT_NAME
- See Also:
-
-
Constructor Details
-
ClientCacheConfiguration
public ClientCacheConfiguration()
-
-
Method Details
-
gemfireCache
Bean declaration for a single, peerClientCache
instance.- Returns:
- a new instance of a peer
ClientCache
. - See Also:
-
ClientCacheFactoryBean
ClientCache
GemFireCache
AbstractCacheConfiguration.constructCacheFactoryBean()
-
newCacheFactoryBean
Constructs a new instance ofClientCacheFactoryBean
used to create a peerClientCache
.- Specified by:
newCacheFactoryBean
in classAbstractCacheConfiguration
- Type Parameters:
T
-Class
sub-type ofCacheFactoryBean
.- Returns:
- a new instance of
ClientCacheFactoryBean
. - See Also:
-
configureInfrastructure
protected void configureInfrastructure(org.springframework.core.type.AnnotationMetadata importMetadata) Configures Spring container infrastructure components and beans used by Spring Data GemFire to enable Pivotal GemFire or Apache Geode to function properly inside a Spring context. This overridden method configures and registers additional Spring components and beans applicable toClientCaches
.- Overrides:
configureInfrastructure
in classAbstractCacheConfiguration
- Parameters:
importMetadata
-AnnotationMetadata
containing annotation meta-data for the Spring Data GemFire cache application class.- See Also:
-
AnnotationMetadata
-
configureCache
protected void configureCache(org.springframework.core.type.AnnotationMetadata importMetadata) ConfiguresClientCache
specific settings.- Overrides:
configureCache
in classAbstractCacheConfiguration
- Parameters:
importMetadata
-AnnotationMetadata
containing client cache meta-data used to configure theClientCache
.- See Also:
-
AnnotationMetadata
configureLocatorsAndServers(Map)
-
newConnectionEndpoint
-
getAnnotationType
Returns the cache applicationAnnotation
type pertaining to this configuration.- Specified by:
getAnnotationType
in classAbstractAnnotationConfigSupport
- Returns:
- the cache application
Annotation
type used by this application.
-
getBeanFactory
protected org.springframework.beans.factory.BeanFactory getBeanFactory()Returns a reference to the SpringBeanFactory
in the current application context.- Overrides:
getBeanFactory
in classAbstractAnnotationConfigSupport
- Returns:
- a reference to the Spring
BeanFactory
. - See Also:
-
BeanFactory
-
getDurableClientId
-
getDurableClientTimeout
-
getFreeConnectionTimeout
-
getIdleTimeout
-
getKeepAlive
-
getLoadConditioningInterval
-
getMaxConnections
-
getMinConnections
-
getMultiUserAuthentication
-
getPingInterval
-
getPoolLocators
-
getPoolServers
-
getPrSingleHopEnabled
-
getReadTimeout
-
getReadyForEvents
protected boolean getReadyForEvents() -
getRetryAttempts
-
getServerConnectionTimeout
-
getServerGroup
-
getSocketBufferSize
-
getSocketConnectTimeout
-
getSocketFactoryBeanName
-
getStatisticsInterval
-
getSubscriptionAckInterval
-
getSubscriptionEnabled
-
getSubscriptionMessageTrackingTimeout
-
getSubscriptionRedundancy
-
getThreadLocalConnections
-
toString
Returns aString
containing the name of the Spring-configured Apache GeodeClientCache
application.- Overrides:
toString
in classAbstractCacheConfiguration
- Returns:
- a
String
containing the name of the Spring-configured Apache GeodeClientCache
application. - See Also:
-