package com.atlassian.bitbucket.mesh.git.gc;

import java.io.Closeable;

/**
 * While held, prevents new GC tasks from being initiated. This can be useful for operations which are interacting
 * with repository data on disk and would be sensitive to changes made by concurrent GC processing.
 */
public interface GcPause extends Closeable {

    /**
     * Resumes garbage collection.
     */
    @Override
    void close();
}
