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

org.infinispan.commons.api.TransactionalCache Maven / Gradle / Ivy

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

import jakarta.transaction.TransactionManager;

/**
 * This interface is implemented by caches that support (i.e. can interact with) transactions.
 *
 * @author Pedro Ruivo
 * @since 9.3
 */
public interface TransactionalCache {

   /**
    * @return the {@link TransactionManager} in use by this cache or {@code null} if the cache isn't transactional.
    */
   default TransactionManager getTransactionManager() {
      return null;
   }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy