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:
Aware
,BeanClassLoaderAware
,BeanFactoryAware
,ImportAware
,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
- 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
Modifier and TypeFieldDescriptionprotected static final boolean
protected static final String
protected static final boolean
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
(AnnotationMetadata importMetadata) Configures peerCache
specific settings.protected boolean
Bean declaration for a single, peerCache
instance.protected Class<? extends Annotation>
Returns the cache applicationAnnotation
type pertaining to this configuration.protected Integer
protected Integer
protected Integer
protected <T extends CacheFactoryBean>
TConstructs a new instance ofCacheFactoryBean
used to create a peerCache
.protected Integer
toString()
protected boolean
Methods 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, 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, 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_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, peerCache
instance.- Returns:
- a new instance of a peer
Cache
. - See Also:
-
newCacheFactoryBean
Constructs a new instance ofCacheFactoryBean
used to create a peerCache
.- Specified by:
newCacheFactoryBean
in classAbstractCacheConfiguration
- Type Parameters:
T
-Class
sub-type ofCacheFactoryBean
.- Returns:
- a new instance of
CacheFactoryBean
. - See Also:
-
configureCache
Configures peerCache
specific settings.- Overrides:
configureCache
in classAbstractCacheConfiguration
- Parameters:
importMetadata
-AnnotationMetadata
containing peer cache meta-data used to configure the peerCache
.- See Also:
-
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.
-
enableAutoReconnect
protected boolean enableAutoReconnect() -
lockLease
-
lockTimeout
-
messageSyncInterval
-
searchTimeout
-
useClusterConfiguration
protected boolean useClusterConfiguration() -
toString
Returns aString
containing the name of the Spring-configured Apache Geode peerCache
application and data node in the cluster.- Overrides:
toString
in classAbstractCacheConfiguration
- Returns:
- a
String
containing the name of the Spring-configured Apache Geode peerCache
application and data node in the cluster. - See Also:
-