@Target(value=TYPE) @Retention(value=RUNTIME) @Inherited @Documented @Configuration @Import(value=ClientCacheConfiguration.class) public @interface ClientCacheApplication
ClientCacheApplication
annotation enables a Spring Data GemFire based application to become
a GemFire cache client (i.e. ClientCache
).PoolFactory
,
ResourceManager
,
Configuration
,
Import
,
ClientCacheConfiguration
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.
|
String |
durableClientId
Used only for clients in a client/server installation.
|
int |
durableClientTimeout
Used only for clients in a client/server installation.
|
float |
evictionHeapPercentage
Configures the percentage of heap at or above which the eviction should begin on Regions configured
for HeapLRU eviction.
|
int |
freeConnectionTimeout
Configures the free connection timeout for this pool.
|
long |
idleTimeout
Configures the amount of time a connection can be idle before expiring the connection.
|
boolean |
keepAlive
Configures whether to keep the client queues alive on the server when the client is disconnected
Default is false.
|
int |
loadConditioningInterval
Configures the load conditioning interval for this pool.
|
ClientCacheApplication.Locator[] |
locators
Configures the GemFire
Locator s to which
this cache client will connect. |
String |
logLevel
Configures the log level used to output log messages at GemFire cache runtime.
|
int |
maxConnections
Configures the max number of client to server connections that the pool will create.
|
int |
minConnections
Configures the minimum number of connections to keep available at all times.
|
boolean |
multiUserAuthentication
If set to true then the created pool can be used by multiple users.
|
String |
name
Configures the name of this GemFire member in the cluster (distributed system).
|
long |
pingInterval
Configures how often to ping servers to verify that they are still alive.
|
boolean |
prSingleHopEnabled
By default
prSingleHopEnabled is true in which case the client is aware of the location
of partitions on servers hosting Regions with DataPolicy.PARTITION . |
int |
readTimeout
Configures the number of milliseconds to wait for a response from a server before timing out the operation
and trying another server (if any are available).
|
boolean |
readyForEvents
Notifies the server that this durable client is ready to receive updates.
|
int |
retryAttempts
Configures the number of times to retry a request after timeout/exception.
|
String |
serverGroup
Configures the group that all servers in which this pool connects to must belong to.
|
ClientCacheApplication.Server[] |
servers
Configures the GemFire
CacheServer s to which
this cache client will connect. |
int |
socketBufferSize
Configures the socket buffer size for each connection made in this pool.
|
int |
statisticInterval
Configures how often to send client statistics to the server.
|
int |
subscriptionAckInterval
Configures the interval in milliseconds to wait before sending acknowledgements to the cache server
for events received from the server subscriptions.
|
boolean |
subscriptionEnabled
If set to true then the created pool will have server-to-client subscriptions enabled.
|
int |
subscriptionMessageTrackingTimeout
Configures the messageTrackingTimeout attribute which is the time-to-live period, in milliseconds,
for subscription events the client has received from the server.
|
int |
subscriptionRedundancy
Configures the redundancy level for this pools server-to-client subscriptions.
|
boolean |
threadLocalConnections
Configures the thread local connections policy for this pool.
|
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. |
public abstract boolean copyOnRead
public abstract float criticalHeapPercentage
ResourceManager.DEFAULT_CRITICAL_PERCENTAGE
public abstract String durableClientId
public abstract int durableClientTimeout
public abstract float evictionHeapPercentage
ResourceManager.DEFAULT_EVICTION_PERCENTAGE
public abstract int freeConnectionTimeout
PoolFactory.DEFAULT_FREE_CONNECTION_TIMEOUT
public abstract long idleTimeout
PoolFactory.DEFAULT_IDLE_TIMEOUT
public abstract boolean keepAlive
public abstract int loadConditioningInterval
PoolFactory.DEFAULT_LOAD_CONDITIONING_INTERVAL
public abstract ClientCacheApplication.Locator[] locators
Locator
s to which
this cache client will connect.public abstract String logLevel
public abstract int maxConnections
PoolFactory.DEFAULT_MAX_CONNECTIONS
public abstract int minConnections
PoolFactory.DEFAULT_MIN_CONNECTIONS
public abstract boolean multiUserAuthentication
PoolFactory.DEFAULT_MULTIUSER_AUTHENTICATION
public abstract String name
public abstract long pingInterval
PoolFactory.DEFAULT_PING_INTERVAL
public abstract boolean prSingleHopEnabled
prSingleHopEnabled
is true in which case the client is aware of the location
of partitions on servers hosting Regions with DataPolicy.PARTITION
.PoolFactory.DEFAULT_PR_SINGLE_HOP_ENABLED
public abstract int readTimeout
PoolFactory.DEFAULT_READ_TIMEOUT
public abstract boolean readyForEvents
public abstract int retryAttempts
PoolFactory.DEFAULT_RETRY_ATTEMPTS
public abstract String serverGroup
PoolFactory.DEFAULT_SERVER_GROUP
public abstract ClientCacheApplication.Server[] servers
CacheServer
s to which
this cache client will connect.public abstract int socketBufferSize
PoolFactory.DEFAULT_SOCKET_BUFFER_SIZE
public abstract int statisticInterval
PoolFactory.DEFAULT_STATISTIC_INTERVAL
public abstract int subscriptionAckInterval
PoolFactory.DEFAULT_SUBSCRIPTION_ACK_INTERVAL
public abstract boolean subscriptionEnabled
PoolFactory.DEFAULT_SUBSCRIPTION_ENABLED
public abstract int subscriptionMessageTrackingTimeout
PoolFactory.DEFAULT_SUBSCRIPTION_MESSAGE_TRACKING_TIMEOUT
public abstract int subscriptionRedundancy
PoolFactory.DEFAULT_SUBSCRIPTION_REDUNDANCY
public abstract boolean threadLocalConnections
PoolFactory.DEFAULT_THREAD_LOCAL_CONNECTIONS
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.Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.