Class RemoteCacheConfigurationBuilder

    • Method Detail

      • forceReturnValues

        public RemoteCacheConfigurationBuilder forceReturnValues​(boolean forceReturnValues)
        Whether or not to implicitly FORCE_RETURN_VALUE for all calls to this cache.
      • nearCacheFactory

        public RemoteCacheConfigurationBuilder nearCacheFactory​(org.infinispan.client.hotrod.near.NearCacheFactory factory)
        Specifies a NearCacheFactory which is responsible for creating NearCache instances.
        Parameters:
        factory - a NearCacheFactory
        Returns:
        an instance of the builder
      • configuration

        public RemoteCacheConfigurationBuilder configuration​(String configuration)
        Specifies the declarative configuration to be used to create the cache if it doesn't already exist on the server.
        Parameters:
        configuration - the XML representation of a cache configuration.
        Returns:
        an instance of the builder
      • configurationURI

        public RemoteCacheConfigurationBuilder configurationURI​(URI uri)
        Specifies a URI pointing to the declarative configuration to be used to create the cache if it doesn't already exist on the server.
        Parameters:
        uri - the URI of the configuration.
        Returns:
        an instance of the builder
      • templateName

        public RemoteCacheConfigurationBuilder templateName​(String templateName)
        Specifies the name of a template to be used to create the cache if it doesn't already exist on the server.
        Parameters:
        templateName - the name of the template.
        Returns:
        an instance of the builder
      • templateName

        public RemoteCacheConfigurationBuilder templateName​(DefaultTemplate template)
        Specifies one of the default templates to be used to create the cache if it doesn't already exist on the server.
        Parameters:
        template - the template to use
        Returns:
        an instance of the builder
      • read

        public Builder<?> read​(RemoteCacheConfiguration template)
        Description copied from interface: Builder
        Reads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration
        Specified by:
        read in interface Builder<RemoteCacheConfiguration>
        Parameters:
        template - the configuration from which to "clone" this config if needed.