@Configuration public class ClientCacheConfiguration extends AbstractCacheConfiguration
Configuration class used to configure, construct and initialize
a GemFire ClientCache instance in a Spring application context.Bean,
Configuration,
AbstractCacheConfiguration,
ClientCache| 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| Constructor and Description |
|---|
ClientCacheConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureCache(AnnotationMetadata importMetadata)
Configures GemFire
ClientCache specific settings. |
protected void |
configureInfrastructure(AnnotationMetadata importMetadata)
Configures Spring container infrastructure components used by Spring Data GemFire
to enable GemFire to function properly inside a Spring context.
|
protected void |
configureLocatorsAndServers(Map<String,Object> clientCacheApplicationAttributes)
Uses the list of GemFire Locator and Server connection endpoint definitions and meta-data to configure
the GemFire client
Pool used to communicate with the servers
in the GemFire cluster. |
protected String |
durableClientId() |
protected Integer |
durableClientTimeout() |
protected Integer |
freeConnectionTimeout() |
ClientCacheFactoryBean |
gemfireCache() |
protected Class |
getAnnotationType()
Returns the GemFire cache application
Annotation type pertaining to
this configuration. |
protected Long |
idleTimeout() |
protected Boolean |
keepAlive() |
protected Integer |
loadConditioningInterval() |
protected Integer |
maxConnections() |
protected Integer |
minConnections() |
protected Boolean |
multiUserAuthentication() |
protected <T extends CacheFactoryBean> |
newCacheFactoryBean()
Constructs a new, uninitialized instance of the
CacheFactoryBean based on the Spring application's
GemFire cache type (i.e. client or peer) preference specified via annotation. |
protected ConnectionEndpoint |
newConnectionEndpoint(String host,
Integer port) |
protected Long |
pingInterval() |
protected Iterable<ConnectionEndpoint> |
poolLocators() |
protected Iterable<ConnectionEndpoint> |
poolServers() |
protected Boolean |
prSingleHopEnabled() |
protected Integer |
readTimeout() |
protected boolean |
readyForEvents() |
protected void |
registerClientRegionPoolBeanFactoryPostProcessor(AnnotationMetadata importMetadata) |
protected Integer |
retryAttempts() |
protected String |
serverGroup() |
protected Integer |
socketBufferSize() |
protected Integer |
statisticsInterval() |
protected Integer |
subscriptionAckInterval() |
protected Boolean |
subscriptionEnabled() |
protected Integer |
subscriptionMessageTrackingTimeout() |
protected Integer |
subscriptionRedundancy() |
protected Boolean |
threadLocalConnections() |
String |
toString() |
add, beanClassLoader, beanFactory, cacheXml, close, configureOther, configurePdx, constructCacheFactoryBean, copyOnRead, criticalHeapPercentage, dynamicRegionSupport, evictionHeapPercentage, gatewayConflictResolver, gemfireProperties, getAnnotationTypeName, getAnnotationTypeSimpleName, hasValue, hasValue, hasValue, isCacheServerApplication, isCacheServerOrPeerCacheApplication, isClientCacheApplication, isClientPeerOrServerCacheApplication, isPeerCacheApplication, isTypedCacheApplication, jndiDataSources, locators, logLevel, mappingContext, mcastPort, name, newPdxSerializer, pdxDiskStoreName, pdxIgnoreUnreadFields, pdxPersistent, pdxReadSerialized, pdxSerializer, register, registerCustomEditorBeanFactoryPostProcessor, registerDefinedIndexesApplicationListener, registerDiskStoreDirectoryBeanPostProcessor, registerPdxDiskStoreAwareBeanFactoryPostProcessor, resolvePdxSerializer, setBeanClassLoader, setBeanFactory, setCommonCacheConfiguration, setImportMetadata, startLocator, transactionListeners, transactionWriter, useBeanFactoryLocatorprotected static final boolean DEFAULT_READY_FOR_EVENTS
protected static final String DEFAULT_NAME
@Bean public ClientCacheFactoryBean gemfireCache()
protected <T extends CacheFactoryBean> T newCacheFactoryBean()
CacheFactoryBean based on the Spring application's
GemFire cache type (i.e. client or peer) preference specified via annotation.newCacheFactoryBean in class AbstractCacheConfigurationT - Class type of the CacheFactoryBean.CacheFactoryBean given the Spring application's
GemFire cache type preference (i.e client or peer) specified with the corresponding annotation
(e.g. ClientCacheApplication or PeerCacheApplication).ClientCacheFactoryBean,
CacheFactoryBeanprotected void configureInfrastructure(AnnotationMetadata importMetadata)
configureInfrastructure in class AbstractCacheConfigurationimportMetadata - AnnotationMetadata containing annotation meta-data
for the Spring GemFire cache application class.AnnotationMetadataprotected void registerClientRegionPoolBeanFactoryPostProcessor(AnnotationMetadata importMetadata)
protected void configureCache(AnnotationMetadata importMetadata)
ClientCache specific settings.configureCache in class AbstractCacheConfigurationimportMetadata - AnnotationMetadata containing client cache meta-data used to configure
the GemFire ClientCache.AnnotationMetadataprotected void configureLocatorsAndServers(Map<String,Object> clientCacheApplicationAttributes)
Pool used to communicate with the servers
in the GemFire cluster.clientCacheApplicationAttributes - ClientCacheApplication annotation containing
Pool Locator/Server connection endpoint meta-data.ClientCacheApplication,
Mapprotected ConnectionEndpoint newConnectionEndpoint(String host, Integer port)
protected Class getAnnotationType()
Annotation type pertaining to
this configuration.getAnnotationType in class AbstractCacheConfigurationAnnotation type used by this application.CacheServerApplication,
ClientCacheApplication,
PeerCacheApplicationprotected String durableClientId()
protected Integer durableClientTimeout()
protected Integer freeConnectionTimeout()
protected Long idleTimeout()
protected Boolean keepAlive()
protected Integer loadConditioningInterval()
protected Integer maxConnections()
protected Integer minConnections()
protected Boolean multiUserAuthentication()
protected Long pingInterval()
protected Iterable<ConnectionEndpoint> poolLocators()
protected Iterable<ConnectionEndpoint> poolServers()
protected Boolean prSingleHopEnabled()
protected Integer readTimeout()
protected boolean readyForEvents()
protected Integer retryAttempts()
protected String serverGroup()
protected Integer socketBufferSize()
protected Integer statisticsInterval()
protected Integer subscriptionAckInterval()
protected Boolean subscriptionEnabled()
protected Integer subscriptionMessageTrackingTimeout()
protected Integer subscriptionRedundancy()
protected Boolean threadLocalConnections()
public String toString()
AbstractCacheConfigurationtoString in class AbstractCacheConfigurationCopyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.