public class IndexingConfigurationBuilder extends AbstractConfigurationChildBuilder
Modifier and Type | Field and Description |
---|---|
private boolean |
enabled |
private boolean |
indexLocalOnly |
private static org.infinispan.util.logging.Log |
log |
private java.util.Properties |
properties |
Constructor and Description |
---|
IndexingConfigurationBuilder(ConfigurationBuilder builder) |
Modifier and Type | Method and Description |
---|---|
IndexingConfigurationBuilder |
addProperty(java.lang.String key,
java.lang.String value)
Defines a single property.
|
IndexingConfiguration |
create() |
IndexingConfigurationBuilder |
disable()
Disable indexing
|
IndexingConfigurationBuilder |
enable()
Enable indexing
|
(package private) boolean |
enabled() |
IndexingConfigurationBuilder |
enabled(boolean enabled) |
(package private) boolean |
indexLocalOnly() |
IndexingConfigurationBuilder |
indexLocalOnly(boolean b)
If true, only index changes made locally, ignoring remote changes.
|
IndexingConfigurationBuilder |
read(IndexingConfiguration template) |
IndexingConfigurationBuilder |
setProperty(java.lang.String key,
java.lang.Object value)
Defines a single value.
|
java.lang.String |
toString() |
void |
validate() |
IndexingConfigurationBuilder |
withProperties(java.util.Properties props)
The Query engine relies on properties for configuration.
|
build, clustering, compatibility, customInterceptors, dataContainer, deadlockDetection, eviction, expiration, getBuilder, indexing, invocationBatching, jmxStatistics, locking, persistence, sites, storeAsBinary, transaction, unsafe, versioning
private static final org.infinispan.util.logging.Log log
private boolean enabled
private boolean indexLocalOnly
private java.util.Properties properties
IndexingConfigurationBuilder(ConfigurationBuilder builder)
public IndexingConfigurationBuilder enable()
public IndexingConfigurationBuilder disable()
public IndexingConfigurationBuilder enabled(boolean enabled)
boolean enabled()
public IndexingConfigurationBuilder indexLocalOnly(boolean b)
boolean indexLocalOnly()
public IndexingConfigurationBuilder addProperty(java.lang.String key, java.lang.String value)
Defines a single property. Can be used multiple times to define all needed properties, but the
full set is overridden by withProperties(Properties)
.
These properties are passed directly to the embedded Hibernate Search engine, so for the complete and up to date documentation about available properties refer to the the Hibernate Search reference of the version used by Infinispan Query.
key
- Property keyvalue
- Property valuethis
, for method chainingpublic IndexingConfigurationBuilder setProperty(java.lang.String key, java.lang.Object value)
Defines a single value. Can be used multiple times to define all needed property values, but the
full set is overridden by withProperties(Properties)
.
These properties are passed directly to the embedded Hibernate Search engine, so for the complete and up to date documentation about available properties refer to the the Hibernate Search reference of the version used by Infinispan Query.
key
- Property keyvalue
- Property valuethis
, for method chainingpublic IndexingConfigurationBuilder withProperties(java.util.Properties props)
The Query engine relies on properties for configuration.
These properties are passed directly to the embedded Hibernate Search engine, so for the complete and up to date documentation about available properties refer to the Hibernate Search reference of the version you're using with Infinispan Query.
props
- the propertiesthis
, for method chainingpublic void validate()
public IndexingConfiguration create()
public IndexingConfigurationBuilder read(IndexingConfiguration template)
public java.lang.String toString()
toString
in class java.lang.Object