Spring Data for VMware GemFire
Class PeerCacheConfiguration
java.lang.Object
org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
org.springframework.data.gemfire.config.annotation.AbstractCacheConfiguration
org.springframework.data.gemfire.config.annotation.PeerCacheConfiguration
- 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
- Direct Known Subclasses:
CacheServerConfiguration
@Configuration
@Import(AdministrativeConfiguration.class)
public class PeerCacheConfiguration
extends AbstractCacheConfiguration
Spring
Configuration class used to construct, configure and initialize a peer Cache instance
in a Spring application context.- Since:
- 1.9.0
- See Also:
-
CacheListableBeanFactoryBeanConfigurationImportCacheFactoryBeanAbstractCacheConfigurationAdministrativeConfigurationPeerCacheApplicationPeerCacheConfigurer
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
AbstractAnnotationConfigSupport.TypeResolver<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final booleanprotected static final Stringprotected static final booleanprotected static final booleanFields 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
CURRENT_THREAD_CONTEXT_CLASS_LOADER, INFRASTRUCTURE_ROLES, ORG_SPRINGFRAMEWORK_DATA_GEMFIRE_PACKAGE, ORG_SPRINGFRAMEWORK_PACKAGE, SPRING_DATA_GEMFIRE_PROPERTY_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigureCache(org.springframework.core.type.AnnotationMetadata importMetadata) Configures peerCachespecific settings.protected booleanBean declaration for a single, peerCacheinstance.protected Class<? extends Annotation>Returns the cache applicationAnnotationtype pertaining to this configuration.protected Integerprotected Integerprotected Integerprotected <T extends CacheFactoryBean>
TConstructs a new instance ofCacheFactoryBeanused to create a peerCache.protected IntegertoString()Returns aStringcontaining the name of the Spring-configured Apache Geode peerCacheapplication and data node in the cluster.protected booleanprotected BooleanMethods inherited from class org.springframework.data.gemfire.config.annotation.AbstractCacheConfiguration
add, configureCacheFactoryBean, configureInfrastructure, 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, getBeanFactory, 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_USE_UDP_MEMBERSHIP_MESSENGER
protected static final boolean DEFAULT_USE_UDP_MEMBERSHIP_MESSENGER- See Also:
-
DEFAULT_ENABLE_AUTO_RECONNECT
protected static final boolean DEFAULT_ENABLE_AUTO_RECONNECT- See Also:
-
DEFAULT_USE_CLUSTER_CONFIGURATION
protected static final boolean DEFAULT_USE_CLUSTER_CONFIGURATION- See Also:
-
DEFAULT_NAME
- See Also:
-
-
Constructor Details
-
PeerCacheConfiguration
public PeerCacheConfiguration()
-
-
Method Details
-
gemfireCache
Bean declaration for a single, peerCacheinstance.- Returns:
- a new instance of a peer
Cache. - See Also:
-
CacheFactoryBeanGemFireCacheCacheAbstractCacheConfiguration.constructCacheFactoryBean()
-
newCacheFactoryBean
Constructs a new instance ofCacheFactoryBeanused to create a peerCache.- Specified by:
newCacheFactoryBeanin classAbstractCacheConfiguration- Type Parameters:
T-Classsub-type ofCacheFactoryBean.- Returns:
- a new instance of
CacheFactoryBean. - See Also:
-
configureCache
protected void configureCache(org.springframework.core.type.AnnotationMetadata importMetadata) Configures peerCachespecific settings.- Overrides:
configureCachein classAbstractCacheConfiguration- Parameters:
importMetadata-AnnotationMetadatacontaining peer cache meta-data used to configure the peerCache.- See Also:
-
getAnnotationType
Returns the cache applicationAnnotationtype pertaining to this configuration.- Specified by:
getAnnotationTypein classAbstractAnnotationConfigSupport- Returns:
- the cache application
Annotationtype used by this application.
-
enableAutoReconnect
protected boolean enableAutoReconnect() -
lockLease
-
lockTimeout
-
messageSyncInterval
-
searchTimeout
-
useClusterConfiguration
protected boolean useClusterConfiguration() -
useUDPMembershipMessenger
-
toString
Returns aStringcontaining the name of the Spring-configured Apache Geode peerCacheapplication and data node in the cluster.- Overrides:
toStringin classAbstractCacheConfiguration- Returns:
- a
Stringcontaining the name of the Spring-configured Apache Geode peerCacheapplication and data node in the cluster. - See Also:
-