public interface CacheHandler
Modifier and Type | Method and Description |
---|---|
void |
deleteCaches(Collection<String> keys,
com.opensymphony.xwork.ValidationAware feedback)
Delete the specified caches, handling internal data updates etc.
|
void |
deleteUnusedCaches(com.opensymphony.xwork.ValidationAware feedback)
Delete all unused caches.
|
Collection<CacheDescription> |
getCacheDescriptions()
Collection of cache descriptions to be displayed in the admin UI.
|
String |
getHandlerDescription()
Additional information about this cache type that would be displayed in UI.
|
String |
getKey()
Unique key identifying this provider, for example module key.
|
String |
getName()
Display name of the cache type, for example repository type name.
|
@NotNull String getKey()
@NotNull String getName()
@NotNull String getHandlerDescription()
This should include information about any non-obvious details like scheduling remote agent operations.
@NotNull Collection<CacheDescription> getCacheDescriptions()
void deleteCaches(@NotNull Collection<String> keys, @NotNull com.opensymphony.xwork.ValidationAware feedback)
keys
- keys from CacheDescription.getKey()
feedback
- consumer of UI messagesvoid deleteUnusedCaches(@NotNull com.opensymphony.xwork.ValidationAware feedback)
It's the responsibility of the implementing class to figure out which caches are currently unused and optionally delete such caches on remote agents.
feedback
- consumer of UI messagesCopyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.