org.infinispan.config
Class Configuration.QueryConfigurationBean
java.lang.Object
org.infinispan.config.AbstractConfigurationBean
org.infinispan.config.Configuration.QueryConfigurationBean
- All Implemented Interfaces:
- Serializable, Cloneable, CloneableConfigurationComponent, Configuration.IndexingConfig, JAXBUnmarshallable
- Enclosing class:
- Configuration
public static class Configuration.QueryConfigurationBean
- extends AbstractConfigurationBean
- implements Configuration.IndexingConfig
Configures indexing of entries in the cache for searching. Note that infinispan-query.jar and its dependencies
needs to be available if this option is to be used.
- See Also:
- Configuration reference,
Serialized Form
enabled
protected Boolean enabled
indexLocalOnly
protected Boolean indexLocalOnly
Configuration.QueryConfigurationBean
public Configuration.QueryConfigurationBean()
isEnabled
public Boolean isEnabled()
setEnabled
public void setEnabled(Boolean enabled)
enabled
public Configuration.IndexingConfig enabled(Boolean enabled)
- Description copied from interface:
Configuration.IndexingConfig
- If enabled, entries will be indexed when they are added to the cache. Indexes will be
updated as entries change or are removed.
- Specified by:
enabled
in interface Configuration.IndexingConfig
isIndexLocalOnly
public Boolean isIndexLocalOnly()
setIndexLocalOnly
public void setIndexLocalOnly(Boolean indexLocalOnly)
indexLocalOnly
public Configuration.IndexingConfig indexLocalOnly(Boolean indexLocalOnly)
- Description copied from interface:
Configuration.IndexingConfig
- If true, only index changes made locally, ignoring remote changes. This is useful if
indexes are shared across a cluster to prevent redundant indexing of updates.
- Specified by:
indexLocalOnly
in interface Configuration.IndexingConfig
accept
public void accept(ConfigurationBeanVisitor v)
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
hasComponentStarted
protected boolean hasComponentStarted()
- Description copied from class:
AbstractConfigurationBean
- Tests whether the component this configuration bean intents to configure has already started.
- Specified by:
hasComponentStarted
in class AbstractConfigurationBean
- Returns:
- true if the component has started; false otherwise.
clone
public Configuration.QueryConfigurationBean clone()
- Specified by:
clone
in interface CloneableConfigurationComponent
- Overrides:
clone
in class AbstractConfigurationBean
Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.