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

com.rapleaf.jack.transaction.ITransactor Maven / Gradle / Ivy

There is a newer version: 1.8
Show newest version
package com.rapleaf.jack.transaction;

import java.io.Closeable;

import com.rapleaf.jack.IDb;

public interface ITransactor extends Closeable {

  ITransactor asTransaction();

  ITransactor allowRetries(RetryPolicy retryPolicy);

   T query(IQuery query);

  void execute(IExecution execution);

  @Deprecated
   T queryAsTransaction(IQuery query);

  @Deprecated
  void executeAsTransaction(IExecution execution);

  @Override
  void close();

  DbPoolStatus getDbPoolStatus();

  interface Builder> {
    Impl get();
  }

  interface RetryPolicy {

    void onFailure(Exception cause);

    void onSuccess();

    boolean execute();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy