@Target(value=TYPE) @Retention(value=RUNTIME) @Inherited @Documented @Import(value=AddCacheServerConfiguration.class) public @interface EnableCacheServer
EnableCacheServer annotation configures a Spring Configuration
annotated class with a GemFire CacheServer bean in the Spring application context.
This annotation is used in conjunction with the CacheServerApplication, or PeerCacheApplication
annotations to add an additional CacheServers to a GemFire peer cache application
configured with Spring (Data GemFire).
To add more than 1 CacheServer to your application, this annotation can be nested in
the EnableCacheServers annotation.CacheServer,
AddCacheServerConfiguration,
CacheServerConfigurer,
EnableCacheServers| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
autoStartup
Configures whether the
CacheServer should start automatically at runtime. |
String |
bindAddress
Configures the ip address or host name that this cache server will listen on.
|
String |
hostnameForClients
Configures the ip address or host name that server locators will tell clients that this cache server
is listening on.
|
long |
loadPollInterval
Configures the frequency in milliseconds to poll the load probe on this cache server.
|
int |
maxConnections
Configures the maximum allowed client connections.
|
int |
maxMessageCount
Configures he maximum number of messages that can be enqueued in a client-queue.
|
int |
maxThreads
Configures the maximum number of threads allowed in this cache server to service client requests.
|
int |
maxTimeBetweenPings
Configures the maximum amount of time between client pings.
|
int |
messageTimeToLive
Configures the time (in seconds ) after which a message in the client queue will expire.
|
String |
name
Configures the name of the Spring bean defined in the Spring application context.
|
int |
port
Configures the port on which this cache server listens for clients.
|
int |
socketBufferSize
Configures the configured buffer size of the socket connection for this CacheServer.
|
int |
subscriptionCapacity
Configures the capacity of the client queue.
|
String |
subscriptionDiskStoreName
Configures the disk store name for overflow.
|
SubscriptionEvictionPolicy |
subscriptionEvictionPolicy
Configures the eviction policy that is executed when capacity of the client queue is reached.
|
public abstract boolean autoStartup
CacheServer should start automatically at runtime.
Default is {@literal true).public abstract String bindAddress
CacheServer.DEFAULT_BIND_ADDRESSpublic abstract String hostnameForClients
CacheServer.DEFAULT_HOSTNAME_FOR_CLIENTSpublic abstract long loadPollInterval
CacheServer.DEFAULT_LOAD_POLL_INTERVALpublic abstract int maxConnections
CacheServer.DEFAULT_MAX_CONNECTIONSpublic abstract int maxMessageCount
CacheServer.DEFAULT_MAXIMUM_MESSAGE_COUNTpublic abstract int maxThreads
CacheServer.DEFAULT_MAX_THREADSpublic abstract int maxTimeBetweenPings
CacheServer.DEFAULT_MAXIMUM_TIME_BETWEEN_PINGSpublic abstract int messageTimeToLive
CacheServer.DEFAULT_MESSAGE_TIME_TO_LIVEpublic abstract String name
public abstract int port
CacheServer.DEFAULT_PORTpublic abstract int socketBufferSize
CacheServer.DEFAULT_SOCKET_BUFFER_SIZEpublic abstract int subscriptionCapacity
ClientSubscriptionConfig.DEFAULT_CAPACITYpublic abstract String subscriptionDiskStoreName
public abstract SubscriptionEvictionPolicy subscriptionEvictionPolicy
SubscriptionEvictionPolicy.NONE.Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.