@Target(value={ANNOTATION_TYPE,TYPE}) @Retention(value=RUNTIME) @Inherited @Documented @Configuration @Import(value=PeerCacheConfiguration.class) public @interface PeerCacheApplication
PeerCacheApplication
annotation enables an embedded GemFire peer Cache
instance in a Spring Data GemFire based application.ResourceManager
,
BeanFactory
,
Configuration
,
Import
,
PeerCacheConfiguration
,
GemfireBeanFactoryLocator
Modifier and Type | Optional Element and Description |
---|---|
boolean |
copyOnRead
Indicates whether the "copy on read" is enabled for this cache.
|
float |
criticalHeapPercentage
Configures the percentage of heap at or above which the cache is considered in danger of becoming inoperable.
|
float |
criticalOffHeapPercentage
Configures the percentage of off-heap at or above which the cache is considered in danger of becoming inoperable.
|
boolean |
enableAutoReconnect
By default, a GemFire member (both locators and servers) will attempt to reconnect and reinitialize the cache
after it has been forced out of the distributed system by a network partition event or has otherwise been
shunned by other members.
|
float |
evictionHeapPercentage
Configures the percentage of heap at or above which the eviction should begin on Regions configured
for HeapLRU eviction.
|
float |
evictionOffHeapPercentage
Configures the percentage of off-heap at or above which the eviction should begin on Regions configured
for HeapLRU eviction.
|
String |
locators
Configures the list of Locators defining the cluster to which this Spring cache application will connect.
|
int |
lockLease
Configures the length, in seconds, of distributed lock leases obtained by this cache.
|
int |
lockTimeout
Configures the number of seconds a cache operation will wait to obtain a distributed lock lease.
|
String |
logLevel
Configures the log level used to output log messages at GemFire cache runtime.
|
int |
messageSyncInterval
Configures the frequency (in seconds) at which a message will be sent by the primary cache-server to all
the secondary cache-server nodes to remove the events which have already been dispatched from the queue.
|
String |
name
Configures the name of this GemFire member in the cluster (distributed system).
|
int |
searchTimeout
Configures the number of seconds a cache get operation can spend searching for a value before it times out.
|
boolean |
useBeanFactoryLocator
Determines whether the
GemfireBeanFactoryLocator should be enabled to lookup
the Spring BeanFactory to auto-wire and configure/initialize GemFire components
created in a non-Spring managed, GemFire context. |
boolean |
useClusterConfiguration
Configures whether this GemFire cache member node would pull it's configuration meta-data
from the cluster-based Cluster Configuration service.
|
public abstract boolean copyOnRead
public abstract float criticalHeapPercentage
ResourceManager.DEFAULT_CRITICAL_PERCENTAGE
.
Use spring.data.gemfire.cache.critical-heap-percentage property in application.properties.public abstract float criticalOffHeapPercentage
public abstract boolean enableAutoReconnect
public abstract float evictionHeapPercentage
ResourceManager.DEFAULT_EVICTION_PERCENTAGE
.
Use spring.data.gemfire.cache.eviction-heap-percentage property in application.properties.public abstract float evictionOffHeapPercentage
public abstract String locators
public abstract int lockLease
public abstract int lockTimeout
public abstract String logLevel
public abstract int messageSyncInterval
public abstract String name
public abstract int searchTimeout
public abstract boolean useBeanFactoryLocator
GemfireBeanFactoryLocator
should be enabled to lookup
the Spring BeanFactory
to auto-wire and configure/initialize GemFire components
created in a non-Spring managed, GemFire context.
Defaults to false.
Use spring.data.gemfire.use-bean-factory-locator property in application.properties.public abstract boolean useClusterConfiguration
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.