Class ClientCacheConfiguration

All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.context.annotation.ImportAware, org.springframework.context.EnvironmentAware

@Configuration public class ClientCacheConfiguration extends AbstractCacheConfiguration
Spring Configuration class used to construct, configure and initialize a ClientCache instance in a Spring application context.
Since:
1.9.0
See Also:
  • Field Details

  • Constructor Details

    • ClientCacheConfiguration

      public ClientCacheConfiguration()
  • Method Details

    • gemfireCache

      @Bean public ClientCacheFactoryBean gemfireCache()
      Bean declaration for a single, peer ClientCache instance.
      Returns:
      a new instance of a peer ClientCache.
      See Also:
    • newCacheFactoryBean

      protected <T extends CacheFactoryBean> T newCacheFactoryBean()
      Constructs a new instance of ClientCacheFactoryBean used to create a peer ClientCache.
      Specified by:
      newCacheFactoryBean in class AbstractCacheConfiguration
      Type Parameters:
      T - Class sub-type of CacheFactoryBean.
      Returns:
      a new instance of ClientCacheFactoryBean.
      See Also:
    • configureInfrastructure

      protected void configureInfrastructure(org.springframework.core.type.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. This overridden method configures and registers additional Spring components and beans applicable to ClientCaches.
      Overrides:
      configureInfrastructure in class AbstractCacheConfiguration
      Parameters:
      importMetadata - AnnotationMetadata containing annotation meta-data for the Spring Data GemFire cache application class.
      See Also:
      • AnnotationMetadata
    • configureCache

      protected void configureCache(org.springframework.core.type.AnnotationMetadata importMetadata)
      Configures ClientCache specific settings.
      Overrides:
      configureCache in class AbstractCacheConfiguration
      Parameters:
      importMetadata - AnnotationMetadata containing client cache meta-data used to configure the ClientCache.
      See Also:
      • AnnotationMetadata
      • configureLocatorsAndServers(Map)
    • newConnectionEndpoint

      protected ConnectionEndpoint newConnectionEndpoint(String host, Integer port)
    • getAnnotationType

      protected Class<? extends Annotation> getAnnotationType()
      Returns the cache application Annotation type pertaining to this configuration.
      Specified by:
      getAnnotationType in class AbstractAnnotationConfigSupport
      Returns:
      the cache application Annotation type used by this application.
    • getBeanFactory

      protected org.springframework.beans.factory.BeanFactory getBeanFactory()
      Returns a reference to the Spring BeanFactory in the current application context.
      Overrides:
      getBeanFactory in class AbstractAnnotationConfigSupport
      Returns:
      a reference to the Spring BeanFactory.
      See Also:
      • BeanFactory
    • getDurableClientId

      protected String getDurableClientId()
    • getDurableClientTimeout

      protected Integer getDurableClientTimeout()
    • getFreeConnectionTimeout

      protected Integer getFreeConnectionTimeout()
    • getIdleTimeout

      protected Long getIdleTimeout()
    • getKeepAlive

      protected Boolean getKeepAlive()
    • getLoadConditioningInterval

      protected Integer getLoadConditioningInterval()
    • getMaxConnections

      protected Integer getMaxConnections()
    • getMinConnections

      protected Integer getMinConnections()
    • getMultiUserAuthentication

      protected Boolean getMultiUserAuthentication()
    • getPingInterval

      protected Long getPingInterval()
    • getPoolLocators

      protected Iterable<ConnectionEndpoint> getPoolLocators()
    • getPoolServers

      protected Iterable<ConnectionEndpoint> getPoolServers()
    • getPrSingleHopEnabled

      protected Boolean getPrSingleHopEnabled()
    • getReadTimeout

      protected Integer getReadTimeout()
    • getReadyForEvents

      protected boolean getReadyForEvents()
    • getRetryAttempts

      protected Integer getRetryAttempts()
    • getServerConnectionTimeout

      protected Integer getServerConnectionTimeout()
    • getServerGroup

      protected String getServerGroup()
    • getSocketBufferSize

      protected Integer getSocketBufferSize()
    • getSocketConnectTimeout

      protected Integer getSocketConnectTimeout()
    • getSocketFactoryBeanName

      protected String getSocketFactoryBeanName()
    • getStatisticsInterval

      protected Integer getStatisticsInterval()
    • getSubscriptionAckInterval

      protected Integer getSubscriptionAckInterval()
    • getSubscriptionEnabled

      protected Boolean getSubscriptionEnabled()
    • getSubscriptionMessageTrackingTimeout

      protected Integer getSubscriptionMessageTrackingTimeout()
    • getSubscriptionRedundancy

      protected Integer getSubscriptionRedundancy()
    • getThreadLocalConnections

      protected Boolean getThreadLocalConnections()
    • toString

      public String toString()
      Returns a String containing the name of the Spring-configured Apache Geode ClientCache application.
      Overrides:
      toString in class AbstractCacheConfiguration
      Returns:
      a String containing the name of the Spring-configured Apache Geode ClientCache application.
      See Also: