org.hibernate.engine.transaction.jta.platform.internal.JtaSynchronizationStrategy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-core Show documentation
Show all versions of hibernate-core Show documentation
Hibernate's core ORM functionality
/*
* 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.engine.transaction.jta.platform.internal;
import java.io.Serializable;
import javax.transaction.Synchronization;
/**
* Contract used to centralize {@link Synchronization} handling logic.
*
* @author Steve Ebersole
*/
public interface JtaSynchronizationStrategy extends Serializable {
/**
* Register a synchronization
*
* @param synchronization The synchronization to register.
*/
public void registerSynchronization(Synchronization synchronization);
/**
* Can a synchronization be registered?
*
* @return {@literal true}/{@literal false}
*/
public boolean canRegisterSynchronization();
}