All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.commons.tx.AsyncSynchronization Maven / Gradle / Ivy

There is a newer version: 15.1.0.Dev04
Show newest version
package org.infinispan.commons.tx;

import java.util.concurrent.CompletionStage;

import jakarta.transaction.Synchronization;

/**
 * Non-blocking {@link javax.transaction.Synchronization}.
 *
 * @since 14.0
 */
public interface AsyncSynchronization {

   /**
    * @return A {@link CompletionStage} which is completed with the result of {@link Synchronization#beforeCompletion()}.
    * @see Synchronization#beforeCompletion()
    */
   CompletionStage asyncBeforeCompletion();

   /**
    * @return A {@link CompletionStage} which is completed with the result of {@link Synchronization#afterCompletion(int)}.
    * @see Synchronization#afterCompletion(int)
    */
   CompletionStage asyncAfterCompletion(int status);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy