public class RequestCache extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RequestCache.ResourceKey
Key to identify Resource.
|
static class |
RequestCache.ResourceKeysSupplier
Container storing resource keys.
|
| Modifier and Type | Field and Description |
|---|---|
protected Map<CachedCondition,Boolean> |
cachedConditionsEvaluation |
protected Map<CachedCondition,DefaultUrlBuilder> |
cachedConditionsParameters |
protected Map<RequestCache.ResourceKeysSupplier,List<Resource>> |
cachedResourceLists |
protected Map<Bundle,LinkedHashMap<String,Resource>> |
cachedResources |
protected Snapshot |
cachedSnapshot |
protected Globals |
globals |
| 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(RequestCache.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<RequestCache.ResourceKey> |
toResourceKeys(List<Resource> resources) |
protected final Globals globals
protected final Map<Bundle,LinkedHashMap<String,Resource>> cachedResources
protected final Map<RequestCache.ResourceKeysSupplier,List<Resource>> cachedResourceLists
protected final Map<CachedCondition,Boolean> cachedConditionsEvaluation
protected final Map<CachedCondition,DefaultUrlBuilder> cachedConditionsParameters
protected Snapshot cachedSnapshot
public RequestCache(Globals globals)
public static List<RequestCache.ResourceKey> toResourceKeys(List<Resource> resources)
public Globals getGlobals()
public Map<Bundle,LinkedHashMap<String,Resource>> getCachedResources()
public List<Resource> getCachedResources(RequestCache.ResourceKeysSupplier resourceKeysSupplier)
public Map<CachedCondition,Boolean> getCachedConditionsEvaluation()
public Map<CachedCondition,DefaultUrlBuilder> getCachedConditionsParameters()
public Snapshot getSnapshot()
Copyright © 2019 Atlassian. All rights reserved.