@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
,
PeerCacheConfigurer
AbstractAnnotationConfigSupport.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_LOCATOR
CURRENT_THREAD_CONTEXT_CLASS_LOADER, INFRASTRUCTURE_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, getEvictionHeapPercentage, getEvictionOffHeapPercentage, getGatewayConflictResolver, getJndiDataSources, getTransactionListeners, getTransactionWriter, isCacheServerApplication, isCacheServerOrPeerCacheApplication, isClientCacheApplication, isClientPeerOrServerCacheApplication, isClose, isPeerCacheApplication, isTypedCacheApplication, locators, logLevel, mcastPort, name, setImportMetadata, startLocator, useBeanFactoryLocator
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, redisServiceProperty, 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
protected 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 AbstractCacheConfiguration
T
- Class
sub-type of CacheFactoryBean
.CacheFactoryBean
.CacheFactoryBean
protected void configureCache(AnnotationMetadata importMetadata)
Cache
specific settings.configureCache
in class AbstractCacheConfiguration
importMetadata
- 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 AbstractAnnotationConfigSupport
Annotation
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 AbstractCacheConfiguration
String
containing the name of the Spring-configured Apache Geode peer Cache
application
and data node in the cluster.Object.toString()
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.