public class RequestCache extends Object
| Constructor and Description |
|---|
RequestCache(Globals globals) |
| Modifier and Type | Method and Description |
|---|---|
Map<CachedCondition,Boolean> |
getCachedConditionsEvaluation() |
Map<CachedCondition,DefaultUrlBuilder> |
getCachedConditionsParameters() |
Map<Bundle,LinkedHashMap<String,Resource>> |
getCachedResources()
Needed by WebResource as a storage for Cache.
|
List<Resource> |
getCachedResources(ResourceKeysSupplier resourceKeysSupplier)
Batches and Sub Batches are cached and as such can't contain references to Resources, this cache helps with that.
|
Globals |
getGlobals() |
Snapshot |
getSnapshot()
Get all bundles.
|
static List<ResourceKey> |
toResourceKeys(List<Resource> resources) |
public RequestCache(Globals globals)
public static List<ResourceKey> toResourceKeys(List<Resource> resources)
public Globals getGlobals()
public Map<Bundle,LinkedHashMap<String,Resource>> getCachedResources()
public List<Resource> getCachedResources(ResourceKeysSupplier resourceKeysSupplier)
public Map<CachedCondition,Boolean> getCachedConditionsEvaluation()
public Map<CachedCondition,DefaultUrlBuilder> getCachedConditionsParameters()
public Snapshot getSnapshot()
It is another layer of cache over the `globals.getBundles()` because it is used very heavily, to avoid any performance drawbacks of atomic reference in the `globals.getBundles()`.
Copyright © 2024 Atlassian. All rights reserved.