Package com.atlassian.bamboo.repository
Interface CacheHandler
- All Known Implementing Classes:
GitCacheHandler
public interface CacheHandler
Provides utilities for managing of repository caches.
- Since:
- 11.0 it's a separate plugin module rather than extension of VCS repository.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteCaches(@NotNull Collection<String> keys, @NotNull com.opensymphony.xwork.ValidationAware feedback) Delete the specified caches, handling internal data updates etc.voiddeleteUnusedCaches(@NotNull com.opensymphony.xwork.ValidationAware feedback) Delete all unused caches.@NotNull Collection<CacheDescription>Collection of cache descriptions to be displayed in the admin UI.@NotNull StringgetKey()Unique key identifying this provider, for example module key.
-
Method Details
-
getKey
Unique key identifying this provider, for example module key.- Returns:
- unique key identifying this provider
-
getCacheDescriptions
Collection of cache descriptions to be displayed in the admin UI.- Returns:
- collection of all found caches of given type.
-
deleteCaches
void deleteCaches(@NotNull @NotNull Collection<String> keys, @NotNull @NotNull com.opensymphony.xwork.ValidationAware feedback) Delete the specified caches, handling internal data updates etc.- Parameters:
keys- keys fromCacheDescription.getKey()feedback- consumer of UI messages
-
deleteUnusedCaches
void deleteUnusedCaches(@NotNull @NotNull com.opensymphony.xwork.ValidationAware feedback) Delete all unused caches.It's the responsibility of the implementing class to figure out which caches are currently unused and optionally delete such caches on remote agents.
- Parameters:
feedback- consumer of UI messages
-