package com.atlassian.bitbucket.mesh.transaction;

import javax.annotation.Nonnull;

/**
 * Listener that is called when a {@code git} {@code reference-transaction} hook callback is received. Implementations
 * can optionally {@link ReferenceTransaction#reject(String) reject} the hook callback, thereby blocking the ref update.
 */
public interface ReferenceTransactionListener {

    void onReferenceTransaction(@Nonnull ReferenceTransaction referenceTransaction);
}
