public class IndexingConfigurationBuilder extends AbstractConfigurationChildBuilder implements Builder<IndexingConfiguration>
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()
Create the configuration bean
|
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)
Reads the configuration from an already created configuration bean into this builder.
|
IndexingConfigurationBuilder |
setProperty(java.lang.String key,
java.lang.Object value)
Defines a single value.
|
java.lang.String |
toString() |
void |
validate()
Validate the data in this builder before building the configuration bean
|
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, security, 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()
Builder
validate
in interface Builder<IndexingConfiguration>
public IndexingConfiguration create()
Builder
create
in interface Builder<IndexingConfiguration>
public IndexingConfigurationBuilder read(IndexingConfiguration template)
Builder
read
in interface Builder<IndexingConfiguration>
template
- the configuration from which to "clone" this config if needed.public java.lang.String toString()
toString
in class java.lang.Object