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:
Aware,BeanClassLoaderAware,BeanFactoryAware,ImportAware,EnvironmentAware
Spring
Configuration class used to construct, configure and initialize
a ClientCache instance in a Spring application context.- Since:
- 1.9.0
- Author:
- John Blum
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
AbstractAnnotationConfigSupport.TypeResolver<T> -
Field Summary
FieldsFields 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_LOCATORFields inherited from class org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
INFRASTRUCTURE_ROLES, ORG_SPRINGFRAMEWORK_DATA_GEMFIRE_PACKAGE, ORG_SPRINGFRAMEWORK_PACKAGE, SPRING_DATA_GEMFIRE_PROPERTY_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigureCache(AnnotationMetadata importMetadata) ConfiguresClientCachespecific settings.protected voidconfigureInfrastructure(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, peerClientCacheinstance.protected Class<? extends Annotation>Returns the cache applicationAnnotationtype pertaining to this configuration.protected BeanFactoryReturns a reference to the SpringBeanFactoryin the current application context.protected Stringprotected Integerprotected Integerprotected Longprotected Booleanprotected Integerprotected Integerprotected Integerprotected Booleanprotected Longprotected Iterable<ConnectionEndpoint>protected Iterable<ConnectionEndpoint>protected Booleanprotected Integerprotected booleanprotected Integerprotected Integerprotected Stringprotected Integerprotected Integerprotected Stringprotected Integerprotected Integerprotected Booleanprotected Integerprotected Integerprotected Booleanprotected <T extends CacheFactoryBean>
TConstructs a new instance ofClientCacheFactoryBeanused to create a peerClientCache.protected ConnectionEndpointnewConnectionEndpoint(String host, Integer port) toString()Returns aStringcontaining the name of the Spring-configured Apache GeodeClientCacheapplication.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, useBeanFactoryLocatorMethods 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, getLog, hasValue, hasValue, hasValue, httpServiceProperty, isAnnotationPresent, isAnnotationPresent, isNotInfrastructureBean, isNotInfrastructureBean, isNotInfrastructureClass, isNotInfrastructureClass, isNotInfrastructureRole, isUserLevelMethod, locatorProperty, logDebug, logDebug, logError, logError, loggingProperty, logInfo, logInfo, logWarning, logWarning, managementProperty, managerProperty, memcachedServiceProperty, namedCacheServerProperty, namedDiskStoreProperty, namedGatewaySenderProperty, namedPoolProperty, newEvaluationContext, newLog, pdxProperty, poolProperty, propertyName, redisServiceProperty, register, register, requireProperty, resolveAnnotation, resolveBeanClass, resolveBeanClass, resolveBeanClass, 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, peerClientCacheinstance.- Returns:
- a new instance of a peer
ClientCache. - See Also:
-
newCacheFactoryBean
Constructs a new instance ofClientCacheFactoryBeanused to create a peerClientCache.- Specified by:
newCacheFactoryBeanin classAbstractCacheConfiguration- Type Parameters:
T-Classsub-type ofCacheFactoryBean.- Returns:
- a new instance of
ClientCacheFactoryBean. - See Also:
-
configureInfrastructure
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:
configureInfrastructurein classAbstractCacheConfiguration- Parameters:
importMetadata-AnnotationMetadatacontaining annotation meta-data for the Spring Data GemFire cache application class.- See Also:
-
configureCache
ConfiguresClientCachespecific settings.- Overrides:
configureCachein classAbstractCacheConfiguration- Parameters:
importMetadata-AnnotationMetadatacontaining client cache meta-data used to configure theClientCache.- See Also:
-
AnnotationMetadataconfigureLocatorsAndServers(Map)
-
newConnectionEndpoint
-
getAnnotationType
Returns the cache applicationAnnotationtype pertaining to this configuration.- Specified by:
getAnnotationTypein classAbstractAnnotationConfigSupport- Returns:
- the cache application
Annotationtype used by this application.
-
getBeanFactory
Returns a reference to the SpringBeanFactoryin the current application context.- Overrides:
getBeanFactoryin classAbstractAnnotationConfigSupport- Returns:
- a reference to the Spring
BeanFactory. - See Also:
-
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 aStringcontaining the name of the Spring-configured Apache GeodeClientCacheapplication.- Overrides:
toStringin classAbstractCacheConfiguration- Returns:
- a
Stringcontaining the name of the Spring-configured Apache GeodeClientCacheapplication. - See Also:
-