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

org.hibernate.search.backend.impl.TransactionalOperationExecutor Maven / Gradle / Ivy

There is a newer version: 5.11.12.Final
Show newest version
/*
 * 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.backend.impl;

import org.hibernate.search.backend.LuceneWork;
import org.hibernate.search.indexes.spi.IndexManagerSelector;

/**
 * Visitor interface to apply the configured sharding strategy to a list of LuceneWork;
 * this list is usually the set of operations to be applied in a transactional context.
 *
 * @author Sanne Grinovero
 */
public interface TransactionalOperationExecutor {

	/**
	 * The LuceneWork must be applied to different indexes.
	 *
	 * @param work the work to split.
	 * @param selector the index manager selector used to route works to the relevant index managers
	 * @param context the transactional context where the pending changes are stored
	 */
	void performOperation(LuceneWork work, IndexManagerSelector selector, WorkQueuePerIndexSplitter context);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy