org.hibernate.search.backend.impl.PostTransactionWorkQueueSynchronization 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 java.util.concurrent.ConcurrentMap;
import javax.transaction.Status;
import javax.transaction.Synchronization;
import org.hibernate.search.backend.spi.Work;
import org.hibernate.search.engine.integration.impl.ExtendedSearchIntegrator;
import org.hibernate.search.util.logging.impl.Log;
import org.hibernate.search.util.logging.impl.LoggerFactory;
/**
* Execute some work inside a transaction synchronization
*
* @author Emmanuel Bernard
*/
public class PostTransactionWorkQueueSynchronization implements Synchronization {
private static final Log log = LoggerFactory.make();
/**
* FullTextIndexEventListener is using a WeakIdentityHashMap
* So make sure all Synchronization implementations don't have any
* (direct or indirect) reference to the Session.
*/
private final QueueingProcessor queueingProcessor;
private boolean consumed;
private boolean prepared;
private final ConcurrentMap
© 2015 - 2025 Weber Informatics LLC | Privacy Policy