All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.search.backend.lucene.cache.QueryCachingConfigurationContext Maven / Gradle / Ivy

There is a newer version: 7.2.1.Final
Show newest version
/*
 * SPDX-License-Identifier: Apache-2.0
 * Copyright Red Hat Inc. and Hibernate Authors
 */
package org.hibernate.search.backend.lucene.cache;

import org.apache.lucene.search.QueryCache;
import org.apache.lucene.search.QueryCachingPolicy;
import org.apache.lucene.util.Version;

/**
 * A context allowing the configuration of query caching in a Lucene backend.
 */
public interface QueryCachingConfigurationContext {

	/**
	 * @return The Lucene version in use in the configured backend.
	 */
	Version luceneVersion();

	/**
	 * @param cache The {@link QueryCache} to use when searching.
	 */
	void queryCache(QueryCache cache);

	/**
	 * @param policy The {@link QueryCachingPolicy} to use when searching.
	 */
	void queryCachingPolicy(QueryCachingPolicy policy);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy