com.rapleaf.jack.transaction.ITransactor Maven / Gradle / Ivy
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