org.hibernate.search.elasticsearch.schema.impl.ExecutionOptions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-search-elasticsearch Show documentation
Show all versions of hibernate-search-elasticsearch Show documentation
Hibernate Search backend which has indexing operations forwarded to Elasticsearch
/*
* Hibernate Search, full-text search for your domain model
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
* See the lgpl.txt file in the root directory or .
*/
package org.hibernate.search.elasticsearch.schema.impl;
import org.hibernate.search.elasticsearch.cfg.ElasticsearchIndexStatus;
import org.hibernate.search.elasticsearch.schema.impl.model.DynamicType;
/**
* @author Gunnar Morling
* @author Yoann Rodiere
*/
public interface ExecutionOptions {
/**
* @return the status the index needs to be at least in, otherwise we'll fail starting up.
*/
ElasticsearchIndexStatus getRequiredIndexStatus();
/**
* @return the default Elasticsearch dynamic mapping behaviour.
*/
DynamicType getDynamicMapping();
/**
* @return the time to wait for the {@link #getRequiredIndexStatus() required index status}, in milliseconds.
*/
int getIndexManagementTimeoutInMs();
/**
* @return whether multitenancy is enabled ({@code true}) or not ({@code false}).
*/
boolean isMultitenancyEnabled();
}