Class RemoteCacheConfigurationBuilder

  • All Implemented Interfaces:
    org.infinispan.commons.configuration.Builder<RemoteCacheConfiguration>

    public class RemoteCacheConfigurationBuilder
    extends Object
    implements org.infinispan.commons.configuration.Builder<RemoteCacheConfiguration>
    Per-cache configuration.
    Since:
    14.0
    • Method Detail

      • forceReturnValues

        public RemoteCacheConfigurationBuilder forceReturnValues​(boolean forceReturnValues)
        Whether or not to implicitly FORCE_RETURN_VALUE for all calls to this cache.
      • 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
      • marshaller

        public RemoteCacheConfigurationBuilder marshaller​(org.infinispan.commons.marshall.Marshaller marshaller)
        Specifies a custom Marshaller implementation to serialize and deserialize user objects. Has precedence over marshaller(Class) and marshaller(String). If not configured, the global marshaller will be used for the cache operations.
        Parameters:
        marshaller - the marshaller instance
      • transactionManagerLookup

        public RemoteCacheConfigurationBuilder transactionManagerLookup​(org.infinispan.commons.tx.lookup.TransactionManagerLookup lookup)
        The TransactionManagerLookup to lookup for the transaction manager to interact with.
        Parameters:
        lookup - A TransactionManagerLookup instance.
        Returns:
        An instance of the builder.
      • validate

        public void validate()
        Specified by:
        validate in interface org.infinispan.commons.configuration.Builder<RemoteCacheConfiguration>