Class ProcessedYamlsCacheFacade

java.lang.Object
com.atlassian.bamboo.configuration.external.rss.ProcessedYamlsCacheFacade

public class ProcessedYamlsCacheFacade extends Object
This class provides an abstraction over a directory that holds processed internal YAML files. Its role is to encapsulate invalidation and population the data in the directory. If the cache was invalidated then next time it's created it will remove all data. The data are not removed in the moment of invalidation because there is no guarantee whether someone is not reading it.

The assumption is that thread that uses this class takes care of not passing the same directory to many threads except of the static invalidateAll(Set, long)}

  • Method Details

    • invalidateAll

      public static void invalidateAll(Set<Path> workingDirectories, long repositoryId)
      Invalidated caches in passed working directories. A working directory is a directory returned by RssExecutionDirectoryManager.getRssExecutionDirectory(long, String)
      Parameters:
      workingDirectories - working directories for which the caches should be invalidated
      repositoryId - the repository for witch the cache was created