package co.codewizards.cloudstore.core.repo.local; public interface LocalRepoTransactionListener { int getPriority(); LocalRepoTransaction getTransaction(); void setTransaction(LocalRepoTransaction transaction); /** * Notifies this instance about the {@linkplain #getTransaction() transaction} being begun. * @see #onCommit() * @see #onRollback() */ void onBegin(); /** * Notifies this instance about the {@linkplain #getTransaction() transaction} being committed. * @see #onBegin() * @see #onRollback() */ void onCommit(); /** * Notifies this instance about the {@linkplain #getTransaction() transaction} being rolled back. * @see #onBegin() * @see #onCommit() */ void onRollback(); }