org.hibernate.search.backend.impl.TransactionalOperationExecutor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-search-engine Show documentation
Show all versions of hibernate-search-engine Show documentation
Core of the Object/Lucene mapper, query engine and index management
/*
* 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