@Configuration public class ClientCacheConfiguration extends AbstractCacheConfiguration
Configuration
class used to construct, configure and initialize
a ClientCache
instance in a Spring application context.Annotation
,
ClientCache
,
Pool
,
SocketFactory
,
CacheServer
,
BeanFactory
,
BeanDefinition
,
BeanDefinitionBuilder
,
Bean
,
Configuration
,
AnnotationAttributes
,
AnnotationMetadata
,
CacheFactoryBean
,
ClientCacheFactoryBean
,
AbstractCacheConfiguration
,
ClientCacheConfigurer
,
ClientRegionPoolBeanFactoryPostProcessor
AbstractAnnotationConfigSupport.TypeResolver<T>
Modifier and Type | Field and Description |
---|---|
protected static String |
DEFAULT_NAME |
protected static boolean |
DEFAULT_READY_FOR_EVENTS |
DEFAULT_CLOSE, DEFAULT_COPY_ON_READ, DEFAULT_LOCATORS, DEFAULT_LOG_LEVEL, DEFAULT_MCAST_PORT, DEFAULT_USE_BEAN_FACTORY_LOCATOR
INFRASTRUCTURE_ROLES, ORG_SPRINGFRAMEWORK_DATA_GEMFIRE_PACKAGE, ORG_SPRINGFRAMEWORK_PACKAGE, SPRING_DATA_GEMFIRE_PROPERTY_PREFIX
Constructor and Description |
---|
ClientCacheConfiguration() |
Modifier and Type | Method and Description |
---|---|
protected void |
configureCache(AnnotationMetadata importMetadata)
Configures
ClientCache specific settings. |
protected void |
configureInfrastructure(AnnotationMetadata importMetadata)
Configures Spring container infrastructure components and beans used by Spring Data GemFire
to enable Pivotal GemFire or Apache Geode to function properly inside a Spring context.
|
ClientCacheFactoryBean |
gemfireCache()
Bean declaration for a single, peer
ClientCache instance. |
protected Class<? extends Annotation> |
getAnnotationType()
Returns the cache application
Annotation type pertaining to this configuration. |
protected BeanFactory |
getBeanFactory()
Returns a reference to the Spring
BeanFactory in the current application context. |
protected String |
getDurableClientId() |
protected Integer |
getDurableClientTimeout() |
protected Integer |
getFreeConnectionTimeout() |
protected Long |
getIdleTimeout() |
protected Boolean |
getKeepAlive() |
protected Integer |
getLoadConditioningInterval() |
protected Integer |
getMaxConnections() |
protected Integer |
getMinConnections() |
protected Boolean |
getMultiUserAuthentication() |
protected Long |
getPingInterval() |
protected Iterable<ConnectionEndpoint> |
getPoolLocators() |
protected Iterable<ConnectionEndpoint> |
getPoolServers() |
protected Boolean |
getPrSingleHopEnabled() |
protected Integer |
getReadTimeout() |
protected boolean |
getReadyForEvents() |
protected Integer |
getRetryAttempts() |
protected Integer |
getServerConnectionTimeout() |
protected String |
getServerGroup() |
protected Integer |
getSocketBufferSize() |
protected Integer |
getSocketConnectTimeout() |
protected String |
getSocketFactoryBeanName() |
protected Integer |
getStatisticsInterval() |
protected Integer |
getSubscriptionAckInterval() |
protected Boolean |
getSubscriptionEnabled() |
protected Integer |
getSubscriptionMessageTrackingTimeout() |
protected Integer |
getSubscriptionRedundancy() |
protected Boolean |
getThreadLocalConnections() |
protected <T extends CacheFactoryBean> |
newCacheFactoryBean()
Constructs a new instance of
ClientCacheFactoryBean used to create a peer ClientCache . |
protected ConnectionEndpoint |
newConnectionEndpoint(String host,
Integer port) |
String |
toString()
Returns a
String containing the name of the Spring-configured Apache Geode
ClientCache application. |
add, configureCacheFactoryBean, configureOptional, constructCacheFactoryBean, gemfireProperties, getCacheXml, getCopyOnRead, getCriticalHeapPercentage, getCriticalOffHeapPercentage, getEvictionHeapPercentage, getEvictionOffHeapPercentage, getGatewayConflictResolver, getJndiDataSources, getTransactionListeners, getTransactionWriter, isCacheServerApplication, isCacheServerOrPeerCacheApplication, isClientCacheApplication, isClientPeerOrServerCacheApplication, isClose, isPeerCacheApplication, isTypedCacheApplication, locators, logLevel, mcastPort, name, setImportMetadata, startLocator, useBeanFactoryLocator
arrayOfPropertyNamesFor, arrayOfPropertyNamesFor, asArrayProperty, cacheClientProperty, cacheCompressionProperty, cacheOffHeapProperty, cachePeerProperty, cacheProperty, cacheServerProperty, clusterProperty, diskStoreProperty, entitiesProperty, gatewayReceiverProperty, gatewaySenderProperty, getAnnotationAttributes, getAnnotationAttributes, getAnnotationAttributes, getAnnotationTypeName, getAnnotationTypeSimpleName, getBeanClassLoader, getEnvironment, getEvaluationContext, getLog, hasValue, hasValue, hasValue, httpServiceProperty, isAnnotationPresent, isAnnotationPresent, isNotInfrastructureBean, isNotInfrastructureBean, isNotInfrastructureClass, isNotInfrastructureClass, isNotInfrastructureRole, isUserLevelMethod, locatorProperty, logDebug, logDebug, logError, logError, loggingProperty, logInfo, logInfo, logWarning, logWarning, managementProperty, managerProperty, memcachedServiceProperty, namedCacheServerProperty, namedDiskStoreProperty, namedGatewaySenderProperty, namedPoolProperty, newEvaluationContext, newLog, pdxProperty, poolProperty, propertyName, redisServiceProperty, register, register, requireProperty, resolveAnnotation, resolveBeanClass, resolveBeanClass, resolveBeanClass, resolveBeanClassLoader, resolveBeanClassLoader, resolveBeanClassName, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, safeResolveType, securityProperty, serviceProperty, setBeanClassLoader, setBeanFactory, setEnvironment, sslProperty, statsProperty
protected static final boolean DEFAULT_READY_FOR_EVENTS
protected static final String DEFAULT_NAME
@Bean public ClientCacheFactoryBean gemfireCache()
ClientCache
instance.ClientCache
.ClientCacheFactoryBean
,
ClientCache
,
GemFireCache
,
AbstractCacheConfiguration.constructCacheFactoryBean()
protected <T extends CacheFactoryBean> T newCacheFactoryBean()
ClientCacheFactoryBean
used to create a peer ClientCache
.newCacheFactoryBean
in class AbstractCacheConfiguration
T
- Class
sub-type of CacheFactoryBean
.ClientCacheFactoryBean
.ClientCacheFactoryBean
protected void configureInfrastructure(AnnotationMetadata importMetadata)
ClientCaches
.configureInfrastructure
in class AbstractCacheConfiguration
importMetadata
- AnnotationMetadata
containing annotation meta-data
for the Spring Data GemFire cache application class.AnnotationMetadata
protected void configureCache(AnnotationMetadata importMetadata)
ClientCache
specific settings.configureCache
in class AbstractCacheConfiguration
importMetadata
- AnnotationMetadata
containing client cache meta-data used to
configure the ClientCache
.AnnotationMetadata
,
configureLocatorsAndServers(Map)
protected ConnectionEndpoint newConnectionEndpoint(String host, Integer port)
protected Class<? extends Annotation> getAnnotationType()
Annotation
type pertaining to this configuration.getAnnotationType
in class AbstractAnnotationConfigSupport
Annotation
type used by this application.protected BeanFactory getBeanFactory()
BeanFactory
in the current application context.getBeanFactory
in class AbstractAnnotationConfigSupport
BeanFactory
.BeanFactory
protected String getDurableClientId()
protected Integer getDurableClientTimeout()
protected Integer getFreeConnectionTimeout()
protected Long getIdleTimeout()
protected Boolean getKeepAlive()
protected Integer getLoadConditioningInterval()
protected Integer getMaxConnections()
protected Integer getMinConnections()
protected Boolean getMultiUserAuthentication()
protected Long getPingInterval()
protected Iterable<ConnectionEndpoint> getPoolLocators()
protected Iterable<ConnectionEndpoint> getPoolServers()
protected Boolean getPrSingleHopEnabled()
protected Integer getReadTimeout()
protected boolean getReadyForEvents()
protected Integer getRetryAttempts()
protected Integer getServerConnectionTimeout()
protected String getServerGroup()
protected Integer getSocketBufferSize()
protected Integer getSocketConnectTimeout()
protected String getSocketFactoryBeanName()
protected Integer getStatisticsInterval()
protected Integer getSubscriptionAckInterval()
protected Boolean getSubscriptionEnabled()
protected Integer getSubscriptionMessageTrackingTimeout()
protected Integer getSubscriptionRedundancy()
protected Boolean getThreadLocalConnections()
public String toString()
String
containing the name of the Spring-configured Apache Geode
ClientCache
application.toString
in class AbstractCacheConfiguration
String
containing the name of the Spring-configured Apache Geode
ClientCache
application.Object.toString()
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.