Class Configuration
java.lang.Object
org.infinispan.commons.configuration.attributes.ConfigurationElement<Configuration>
org.infinispan.configuration.cache.Configuration
- All Implemented Interfaces:
Matchable<Configuration>, Updatable<Configuration>, BasicConfiguration
public class Configuration
extends ConfigurationElement<Configuration>
implements BasicConfiguration
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AttributeDefinition<Set<String>> static final AttributeDefinition<String> static final AttributeDefinition<Boolean> Fields inherited from class ConfigurationElement
attributes, CHILDLESS, children, element, repeated, sinceMajor, sinceMinor -
Method Summary
Modifier and TypeMethodDescriptionaliases()static AttributeSetencoding()booleaninthashCode()indexing()Deprecated.booleanlocking()booleanmatches(Configuration other) memory()<T> Tmodules()query()security()booleansites()toString()toStringConfiguration(String name, MediaType mediaType, boolean clearTextSecrets) Converts this configuration to a string representation.toStringConfiguration(String name, MediaType mediaType, boolean clearTextSecrets, ConfigurationSchemaVersion target) Serializes this configuration as XML, omitting any element or attribute whosesinceis newer thantarget, so the emitted document stays parseable by an older cluster member's parser.tracing()unsafe()Methods inherited from class ConfigurationElement
attributes, child, children, children, collectMutableAttributes, elementName, extractAttributes, findAttribute, isModified, isSince, list, matches, matches, update, update, update, validateUpdate, validateUpdate, validateUpdate, writeMethods inherited from interface BasicConfiguration
toStringConfiguration
-
Field Details
-
CONFIGURATION
-
SIMPLE_CACHE
-
ALIASES
-
-
Method Details
-
attributeDefinitionSet
-
aliases
-
simpleCache
public boolean simpleCache() -
clustering
-
encoding
-
expiration
-
query
-
indexing
-
tracing
-
invocationBatching
Deprecated.Since 17.0, useTransactionConfiguration.invocationBatching()viatransaction(). -
statistics
-
persistence
-
locking
-
memory
-
module
-
modules
-
transaction
-
unsafe
-
security
-
sites
-
isTemplate
public boolean isTemplate() -
toString
- Overrides:
toStringin classConfigurationElement<Configuration>
-
equals
- Overrides:
equalsin classConfigurationElement<Configuration>
-
hashCode
public int hashCode()- Overrides:
hashCodein classConfigurationElement<Configuration>
-
matches
- Specified by:
matchesin interfaceMatchable<Configuration>- Overrides:
matchesin classConfigurationElement<Configuration>
-
toStringConfiguration
Description copied from interface:BasicConfigurationConverts this configuration to a string representation.- Specified by:
toStringConfigurationin interfaceBasicConfiguration- Parameters:
name- The name of the configuration in the generated string.mediaType- The type of string to generate. Can be one of XML, JSON or YAML.clearTextSecrets- Whether secrets (e.g. passwords) should be included in clear text or masked.- Returns:
- a String containing the representation of an Infinispan configuration using the Infinispan schema in one of the supported formats (XML, JSON, YAML).
-
toStringConfiguration
public String toStringConfiguration(String name, MediaType mediaType, boolean clearTextSecrets, ConfigurationSchemaVersion target) Description copied from interface:BasicConfigurationSerializes this configuration as XML, omitting any element or attribute whosesinceis newer thantarget, so the emitted document stays parseable by an older cluster member's parser.- Specified by:
toStringConfigurationin interfaceBasicConfiguration- Parameters:
name- the name under which the cache configuration is emittedmediaType- The type of string to generate. Can be one of XML, JSON or YAML.clearTextSecrets- Whether secrets (e.g. passwords) should be included in clear text or masked.target- the schema version the emitted document must stay compatible with,nullincludes all.- Returns:
- the serialized configuration, with newer members omitted
-
TransactionConfiguration.invocationBatching()viatransaction().