@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_ADDRESS
public abstract String hostnameForClients
CacheServer.DEFAULT_HOSTNAME_FOR_CLIENTS
public abstract long loadPollInterval
CacheServer.DEFAULT_LOAD_POLL_INTERVAL
public abstract int maxConnections
CacheServer.DEFAULT_MAX_CONNECTIONS
public abstract int maxMessageCount
CacheServer.DEFAULT_MAXIMUM_MESSAGE_COUNT
public abstract int maxThreads
CacheServer.DEFAULT_MAX_THREADS
public abstract int maxTimeBetweenPings
CacheServer.DEFAULT_MAXIMUM_TIME_BETWEEN_PINGS
public abstract int messageTimeToLive
CacheServer.DEFAULT_MESSAGE_TIME_TO_LIVE
public abstract String name
public abstract int port
CacheServer.DEFAULT_PORT
public abstract int socketBufferSize
CacheServer.DEFAULT_SOCKET_BUFFER_SIZE
public abstract int subscriptionCapacity
ClientSubscriptionConfig.DEFAULT_CAPACITY
public abstract String subscriptionDiskStoreName
public abstract SubscriptionEvictionPolicy subscriptionEvictionPolicy
SubscriptionEvictionPolicy.NONE
.Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.