org.hibernate.resource.transaction.backend.jta.internal.synchronization.SynchronizationCallbackCoordinator Maven / Gradle / Ivy
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* 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.resource.transaction.backend.jta.internal.synchronization;
import javax.transaction.Synchronization;
/**
* Manages funneling JTA Synchronization callbacks back into the Hibernate transaction engine.
*
* @author Steve Ebersole
*/
public interface SynchronizationCallbackCoordinator extends Synchronization {
/**
* Called by the TransactionCoordinator when it registers the Synchronization with the JTA system
*/
public void synchronizationRegistered();
/**
* Called by the TransactionCoordinator to allow the SynchronizationCallbackCoordinator to process any
* after-completion handling that it may have delayed due to thread affinity
*/
public void processAnyDelayedAfterCompletion();
}