blob: 265032bc27ce40a0edc2dbbfd808bd2c575a0d30 [file] [log] [blame]
package com.googlesource.gerrit.plugins.its.base.workflow;
import java.util.List;
/** Cache of project defined ITS rules */
public interface ItsRulesProjectCache {
/**
* Get the cached ITS rules for a project
*
* @param projectName name of the project.
* @return the cached rules; an empty list if no such project exists or projectName is null.
*/
List<Rule> get(String projectName);
/**
* Invalidate the cached rules for the given project.
*
* @param projectName project for which the rules are being evicted
*/
void evict(String projectName);
}