/* * 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 <http://www.gnu.org/licenses/lgpl-2.1.html>. */ package org.hibernate.action.spi; import org.hibernate.engine.spi.SharedSessionContractImplementor; /** * Contract representing some process that needs to occur during after transaction completion. * * @author Steve Ebersole */ public interface AfterTransactionCompletionProcess { /** * Perform whatever processing is encapsulated here after completion of the transaction. * * @param success Did the transaction complete successfully? True means it did. * @param session The session on which the transaction is completing. */ void doAfterTransactionCompletion(boolean success, SharedSessionContractImplementor session); }