public class CachePolicyResult extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CachePolicyResult.CachePolicyBehaviour
Descriptor of the cache policy behavior used by this cache policy result.
|
Modifier and Type | Field and Description |
---|---|
static CachePolicyResult.CachePolicyBehaviour |
bypass |
static CachePolicyResult.CachePolicyBehaviour |
store |
static CachePolicyResult.CachePolicyBehaviour |
useCache |
Constructor and Description |
---|
CachePolicyResult(CachePolicyResult.CachePolicyBehaviour behaviour,
Object cacheKey,
Object cachedEntry) |
Modifier and Type | Method and Description |
---|---|
CachePolicyResult.CachePolicyBehaviour |
getBehaviour() |
Object |
getCachedEntry() |
Object |
getCacheKey() |
static CachePolicyResult |
getCurrent()
Returns the current
CachePolicyResult which was set by the CacheFilter . |
void |
setCachedEntry(Object entry) |
static void |
setCurrent(CachePolicyResult cachePolicyResult)
Saves the result in the context and makes it available by
getCurrent() . |
String |
toString() |
public static final CachePolicyResult.CachePolicyBehaviour store
public static final CachePolicyResult.CachePolicyBehaviour useCache
public static final CachePolicyResult.CachePolicyBehaviour bypass
public CachePolicyResult(CachePolicyResult.CachePolicyBehaviour behaviour, Object cacheKey, Object cachedEntry)
public CachePolicyResult.CachePolicyBehaviour getBehaviour()
public Object getCacheKey()
public Object getCachedEntry()
public void setCachedEntry(Object entry)
public static void setCurrent(CachePolicyResult cachePolicyResult)
getCurrent()
.public static CachePolicyResult getCurrent()
CachePolicyResult
which was set by the CacheFilter
.Copyright © 2015 Magnolia International Ltd.. All rights reserved.