@Configuration @Import(value=AdministrativeConfiguration.class) public class PeerCacheConfiguration extends AbstractCacheConfiguration
Configuration class used to construct, configure and initialize a peer Cache instance
in a Spring application context.Cache,
ListableBeanFactory,
Bean,
Configuration,
Import,
CacheFactoryBean,
AbstractCacheConfiguration,
AdministrativeConfiguration,
PeerCacheApplication,
PeerCacheConfigurerAbstractAnnotationConfigSupport.TypeResolver<T>| Modifier and Type | Field and Description |
|---|---|
protected static boolean |
DEFAULT_ENABLE_AUTO_RECONNECT |
protected static String |
DEFAULT_NAME |
protected static boolean |
DEFAULT_USE_CLUSTER_CONFIGURATION |
DEFAULT_CLOSE, DEFAULT_COPY_ON_READ, DEFAULT_LOCATORS, DEFAULT_LOG_LEVEL, DEFAULT_MCAST_PORT, DEFAULT_USE_BEAN_FACTORY_LOCATORINFRASTRUCTURE_ROLES, ORG_SPRINGFRAMEWORK_DATA_GEMFIRE_PACKAGE, ORG_SPRINGFRAMEWORK_PACKAGE, SPRING_DATA_GEMFIRE_PROPERTY_PREFIX| Constructor and Description |
|---|
PeerCacheConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureCache(AnnotationMetadata importMetadata)
Configures peer
Cache specific settings. |
protected boolean |
enableAutoReconnect() |
CacheFactoryBean |
gemfireCache()
Bean declaration for a single, peer
Cache instance. |
protected Class<? extends Annotation> |
getAnnotationType()
Returns the cache application
Annotation type pertaining to this configuration. |
protected Integer |
lockLease() |
protected Integer |
lockTimeout() |
protected Integer |
messageSyncInterval() |
protected <T extends CacheFactoryBean> |
newCacheFactoryBean()
Constructs a new instance of
CacheFactoryBean used to create a peer Cache. |
protected Integer |
searchTimeout() |
String |
toString()
Returns a
String containing the name of the Spring-configured Apache Geode peer Cache application
and data node in the cluster. |
protected boolean |
useClusterConfiguration() |
add, configureCacheFactoryBean, configureInfrastructure, configureOptional, constructCacheFactoryBean, gemfireProperties, getCacheXml, getCopyOnRead, getCriticalHeapPercentage, getCriticalOffHeapPercentage, getDynamicRegionSupport, getEvictionHeapPercentage, getEvictionOffHeapPercentage, getGatewayConflictResolver, getJndiDataSources, getTransactionListeners, getTransactionWriter, isCacheServerApplication, isCacheServerOrPeerCacheApplication, isClientCacheApplication, isClientPeerOrServerCacheApplication, isClose, isPeerCacheApplication, isTypedCacheApplication, locators, logLevel, mcastPort, name, setImportMetadata, startLocator, useBeanFactoryLocatorarrayOfPropertyNamesFor, arrayOfPropertyNamesFor, asArrayProperty, cacheClientProperty, cacheCompressionProperty, cacheOffHeapProperty, cachePeerProperty, cacheProperty, cacheServerProperty, clusterProperty, diskStoreProperty, entitiesProperty, getAnnotationAttributes, getAnnotationAttributes, getAnnotationAttributes, getAnnotationTypeName, getAnnotationTypeSimpleName, getBeanClassLoader, getBeanFactory, 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, namedPoolProperty, newEvaluationContext, newLog, pdxProperty, poolProperty, propertyName, redisServiceProperty, register, register, requireProperty, resolveAnnotation, resolveBeanClass, resolveBeanClass, resolveBeanClassLoader, resolveBeanClassLoader, resolveBeanClassName, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, safeResolveType, securityProperty, serviceProperty, setBeanClassLoader, setBeanFactory, setEnvironment, sslProperty, statsPropertyprotected static final boolean DEFAULT_ENABLE_AUTO_RECONNECT
protected static final boolean DEFAULT_USE_CLUSTER_CONFIGURATION
protected static final String DEFAULT_NAME
@Bean public CacheFactoryBean gemfireCache()
Cache instance.Cache.CacheFactoryBean,
GemFireCache,
Cache,
AbstractCacheConfiguration.constructCacheFactoryBean()protected <T extends CacheFactoryBean> T newCacheFactoryBean()
CacheFactoryBean used to create a peer Cache.newCacheFactoryBean in class AbstractCacheConfigurationT - Class sub-type of CacheFactoryBean.CacheFactoryBean.CacheFactoryBeanprotected void configureCache(AnnotationMetadata importMetadata)
Cache specific settings.configureCache in class AbstractCacheConfigurationimportMetadata - AnnotationMetadata containing peer cache meta-data used to
configure the peer Cache.AnnotationMetadata,
AbstractCacheConfiguration.isCacheServerOrPeerCacheApplication(AnnotationMetadata)protected Class<? extends Annotation> getAnnotationType()
Annotation type pertaining to this configuration.getAnnotationType in class AbstractAnnotationConfigSupportAnnotation type used by this application.protected boolean enableAutoReconnect()
protected Integer lockLease()
protected Integer lockTimeout()
protected Integer messageSyncInterval()
protected Integer searchTimeout()
protected boolean useClusterConfiguration()
public String toString()
String containing the name of the Spring-configured Apache Geode peer Cache application
and data node in the cluster.toString in class AbstractCacheConfigurationString containing the name of the Spring-configured Apache Geode peer Cache application
and data node in the cluster.Object.toString()Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.