Class RemoteCacheConfigurationBuilder
java.lang.Object
org.infinispan.hotrod.configuration.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 Summary
Modifier and TypeMethodDescriptionorg.infinispan.commons.configuration.attributes.AttributeSetconfiguration(String configuration) Specifies the declarative configuration to be used to create the cache if it doesn't already exist on the server.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.create()forceReturnValues(boolean forceReturnValues) Whether or not to implicitly FORCE_RETURN_VALUE for all calls to this cache.marshaller(Class<? extends org.infinispan.commons.marshall.Marshaller> marshallerClass) Specifies a customMarshallerimplementation.marshaller(String className) Specifies a customMarshallerimplementation.marshaller(org.infinispan.commons.marshall.Marshaller marshaller) Specifies a customMarshallerimplementation to serialize and deserialize user objects.org.infinispan.commons.configuration.Builder<?> read(RemoteCacheConfiguration template, org.infinispan.commons.configuration.Combine combine) 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.transactionManagerLookup(org.infinispan.commons.tx.lookup.TransactionManagerLookup lookup) TheTransactionManagerLookupto lookup for the transaction manager to interact with.TheTransactionModein which a resource will be enlisted.voidvalidate()withProperties(Properties properties) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.commons.configuration.Builder
read, reset
-
Method Details
-
attributes
public org.infinispan.commons.configuration.attributes.AttributeSet attributes()- Specified by:
attributesin interfaceorg.infinispan.commons.configuration.Builder<RemoteCacheConfiguration>
-
nearCache
-
forceReturnValues
Whether or not to implicitly FORCE_RETURN_VALUE for all calls to this cache. -
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
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
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
-
transactionMode
TheTransactionModein which a resource will be enlisted.- Parameters:
mode- the transaction mode- Returns:
- an instance of the builder
-
marshaller
Specifies a customMarshallerimplementation. Seemarshaller(Marshaller).- Parameters:
className- Fully qualifies class name of the marshaller implementation.
-
marshaller
public RemoteCacheConfigurationBuilder marshaller(Class<? extends org.infinispan.commons.marshall.Marshaller> marshallerClass) Specifies a customMarshallerimplementation. Seemarshaller(Marshaller).- Parameters:
marshallerClass- the marshaller class.
-
marshaller
public RemoteCacheConfigurationBuilder marshaller(org.infinispan.commons.marshall.Marshaller marshaller) Specifies a customMarshallerimplementation to serialize and deserialize user objects. Has precedence overmarshaller(Class)andmarshaller(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) TheTransactionManagerLookupto lookup for the transaction manager to interact with.- Parameters:
lookup- ATransactionManagerLookupinstance.- Returns:
- An instance of the builder.
-
validate
public void validate()- Specified by:
validatein interfaceorg.infinispan.commons.configuration.Builder<RemoteCacheConfiguration>
-
create
- Specified by:
createin interfaceorg.infinispan.commons.configuration.Builder<RemoteCacheConfiguration>
-
read
public org.infinispan.commons.configuration.Builder<?> read(RemoteCacheConfiguration template, org.infinispan.commons.configuration.Combine combine) - Specified by:
readin interfaceorg.infinispan.commons.configuration.Builder<RemoteCacheConfiguration>
-
withProperties
-