@Configuration public class PeerCacheConfiguration extends AbstractCacheConfiguration
Configuration
class used to construct, configure and initialize a peer Cache
instance
in a Spring application context.Cache
,
Bean
,
Configuration
,
AbstractCacheConfiguration
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
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 |
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() |
protected boolean |
useClusterConfiguration() |
add, cacheXml, close, configureCacheFactoryBean, configureInfrastructure, configurePdx, configureTheRest, constructCacheFactoryBean, copyOnRead, criticalHeapPercentage, dynamicRegionSupport, evictionHeapPercentage, gatewayConflictResolver, gemfireProperties, getAnnotationTypeName, getAnnotationTypeSimpleName, isCacheServerApplication, isCacheServerOrPeerCacheApplication, isClientCacheApplication, isClientPeerOrServerCacheApplication, isPeerCacheApplication, isTypedCacheApplication, jndiDataSources, locators, logLevel, mappingContext, mcastPort, name, newPdxSerializer, newPdxSerializer, pdxDiskStoreName, pdxIgnoreUnreadFields, pdxPersistent, pdxReadSerialized, pdxSerializer, resolvePdxSerializer, setImportMetadata, startLocator, transactionListeners, transactionWriter, useBeanFactoryLocator
afterPropertiesSet, beanClassLoader, beanFactory, evaluationContext, hasValue, hasValue, hasValue, newEvaluationContext, register, register, setBeanClassLoader, setBeanFactory
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 getAnnotationType()
Annotation
type pertaining to this configuration.getAnnotationType
in class AbstractCacheConfiguration
Annotation
type used by this application.CacheServerApplication
,
ClientCacheApplication
,
PeerCacheApplication
protected boolean enableAutoReconnect()
protected Integer lockLease()
protected Integer lockTimeout()
protected Integer messageSyncInterval()
protected Integer searchTimeout()
protected boolean useClusterConfiguration()
public String toString()
AbstractCacheConfiguration
toString
in class AbstractCacheConfiguration
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.