@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 Pivotal 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 Pivotal 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.
|
boolean |
tcpNoDelay
Configures the tcpNoDelay setting of sockets used to send messages to clients.
|
public abstract boolean autoStartup
CacheServer
should start automatically at runtime.
Defaults to true).
Use either the {@literal spring.data.gemfire.cache.server.public abstract String bindAddress
CacheServer.DEFAULT_BIND_ADDRESS
.
Use either the spring.data.gemfire.cache.server.<beanName>.bind-address property
or the spring.data.gemfire.cache.server.bind-address property
in application.properties.public abstract String hostnameForClients
CacheServer.DEFAULT_HOSTNAME_FOR_CLIENTS
.
Use either the spring.data.gemfire.cache.server.<beanName>.hostname-for-clients property
or the spring.data.gemfire.cache.server.hostname-for-clients property
in application.properties.public abstract long loadPollInterval
CacheServer.DEFAULT_LOAD_POLL_INTERVAL
.
Use either the spring.data.gemfire.cache.server.<beanName>.load-poll-interval property
or the spring.data.gemfire.cache.server.load-poll-interval property
in application.properties.public abstract int maxConnections
CacheServer.DEFAULT_MAX_CONNECTIONS
.
Use either the spring.data.gemfire.cache.server.<beanName>.max-connections property
or the spring.data.gemfire.cache.server.max-connections property
in application.properties.public abstract int maxMessageCount
CacheServer.DEFAULT_MAXIMUM_MESSAGE_COUNT
.
Use either the spring.data.gemfire.cache.server.<beanName>.max-message-count property
or the spring.data.gemfire.cache.server.max-message-count property
in application.properties.public abstract int maxThreads
CacheServer.DEFAULT_MAX_THREADS
.
Use either the spring.data.gemfire.cache.server.<beanName>.max-threads property
or the spring.data.gemfire.cache.server.max-threads property
in application.properties.public abstract int maxTimeBetweenPings
CacheServer.DEFAULT_MAXIMUM_TIME_BETWEEN_PINGS
.
Use either the spring.data.gemfire.cache.server.<beanName>.max-time-between-pings property
or the spring.data.gemfire.cache.server.max-time-between-pings property
in application.properties.public abstract int messageTimeToLive
CacheServer.DEFAULT_MESSAGE_TIME_TO_LIVE
.
Use either the spring.data.gemfire.cache.server.<beanName>.message-time-to-live property
or the spring.data.gemfire.cache.server.message-time-to-live property
in application.properties.public abstract String name
name
of the Spring bean defined in the Spring application context.
Defaults to empty.
This attribute is also used to resolve named CacheServer
properties
from application.properties specific to the configuration of this CacheServer
definition,
therefore, this attribute must be specified when external configuration (e.g. application.properties)
is used.public abstract int port
CacheServer.DEFAULT_PORT
.
Use either the spring.data.gemfire.cache.server.<beanName>.port property
or the spring.data.gemfire.cache.server.port property
in application.properties.public abstract int socketBufferSize
CacheServer.DEFAULT_SOCKET_BUFFER_SIZE
.
Use either the spring.data.gemfire.cache.server.<beanName>.socket-buffer-size property
or the spring.data.gemfire.cache.server.socket-buffer-size property
in application.properties.public abstract int subscriptionCapacity
ClientSubscriptionConfig.DEFAULT_CAPACITY
.
Use either the spring.data.gemfire.cache.server.<beanName>.subscription-capacity property
or the spring.data.gemfire.cache.server.subscription-capacity property
in application.properties.public abstract String subscriptionDiskStoreName
public abstract SubscriptionEvictionPolicy subscriptionEvictionPolicy
SubscriptionEvictionPolicy.NONE
.
Use either the spring.data.gemfire.cache.server.<beanName>.subscription-eviction-policy property
or the spring.data.gemfire.cache.server.subscription-eviction-policy property
in application.properties.public abstract boolean tcpNoDelay
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.