@Target(value=TYPE) @Retention(value=RUNTIME) @Inherited @Documented @Import(value=AddPoolConfiguration.class) public @interface EnablePool
EnablePool
annotation configures a Spring Configuration
annotated class with a "named" GemFire client Pool
bean in the application context.
This annotation is used in conjunction with the ClientCacheApplication
annotation to add an additional
Pool
to a GemFire cache client application configured with Spring (Data GemFire).
To add more than 1 Pool
to your application, this annotation can be nested in the EnablePools
annotation.Pool
,
PoolFactory
,
AddPoolConfiguration
,
EnablePools
,
PoolConfigurer
Modifier and Type | Required Element and Description |
---|---|
String |
name
Specifies the name of the GemFire client
Pool . |
Modifier and Type | Optional Element and Description |
---|---|
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.
|
int |
loadConditioningInterval
Configures the load conditioning interval for this pool.
|
EnablePool.Locator[] |
locators
Configures the GemFire
Locators to which
this cache client will connect. |
String |
locatorsString
A
String containing a comma-delimited list of hosts and ports defining the connection endpoints
of GemFire Locators in the cluster. |
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.
|
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).
|
int |
retryAttempts
Configures the number of times to retry a request after timeout/exception.
|
String |
serverGroup
Configures the group that all servers this pool connects to must belong to.
|
EnablePool.Server[] |
servers
Configures the GemFire
CacheServers to which
this cache client will connect. |
String |
serversString
A
String containing a comma-delimited list of hosts and ports defining the connection endpoints
of GemFire Servers in the cluster. |
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.
|
public abstract String name
Pool
.public abstract int freeConnectionTimeout
PoolFactory.DEFAULT_FREE_CONNECTION_TIMEOUT
public abstract long idleTimeout
PoolFactory.DEFAULT_IDLE_TIMEOUT
public abstract int loadConditioningInterval
PoolFactory.DEFAULT_LOAD_CONDITIONING_INTERVAL
public abstract EnablePool.Locator[] locators
Locators
to which
this cache client will connect.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 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 int retryAttempts
PoolFactory.DEFAULT_RETRY_ATTEMPTS
public abstract String serverGroup
PoolFactory.DEFAULT_SERVER_GROUP
public abstract EnablePool.Server[] servers
CacheServers
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
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.