|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.setup.bandana.ConfluenceCachingBandanaPersister
public class ConfluenceCachingBandanaPersister
Caching bandana persister that uses inline caching.
Uses the read-through cache factory for non-transactional updates to the cache when data is read from the underlying persister.
Constructor Summary | |
---|---|
ConfluenceCachingBandanaPersister()
|
Method Summary | |
---|---|
void |
flushCaches()
|
void |
remove(com.atlassian.bandana.BandanaContext context)
|
void |
remove(com.atlassian.bandana.BandanaContext context,
java.lang.String key)
|
java.util.Map<java.lang.String,java.lang.Object> |
retrieve(com.atlassian.bandana.BandanaContext context)
This implementation is extremely processor intensive but correct. |
java.lang.Object |
retrieve(com.atlassian.bandana.BandanaContext context,
java.lang.String key)
Retrieves the value associated with the key from the given context. |
java.lang.Iterable<java.lang.String> |
retrieveKeys(com.atlassian.bandana.BandanaContext bandanaContext)
Bypass the cache |
void |
setCacheFactory(ReadThroughCacheFactory cacheFactory)
|
void |
setPersister(com.atlassian.bandana.BandanaPersister persister)
|
void |
store(com.atlassian.bandana.BandanaContext context,
java.lang.String key,
java.lang.Object value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfluenceCachingBandanaPersister()
Method Detail |
---|
public void setCacheFactory(ReadThroughCacheFactory cacheFactory)
public void setPersister(com.atlassian.bandana.BandanaPersister persister)
public java.lang.Object retrieve(com.atlassian.bandana.BandanaContext context, java.lang.String key)
Assumes that any BandanaContext we are passed is a KeyedBandanaContext because that's how Confluence uses Bandana.
retrieve
in interface com.atlassian.bandana.BandanaPersister
public java.util.Map<java.lang.String,java.lang.Object> retrieve(com.atlassian.bandana.BandanaContext context)
retrieve
in interface com.atlassian.bandana.BandanaPersister
context
- context to retrieve content for.
String
key to Object
valuepublic java.lang.Iterable<java.lang.String> retrieveKeys(com.atlassian.bandana.BandanaContext bandanaContext)
retrieveKeys
in interface com.atlassian.bandana.BandanaPersister
bandanaContext
- the context for which to get keys
public void store(com.atlassian.bandana.BandanaContext context, java.lang.String key, java.lang.Object value)
store
in interface com.atlassian.bandana.BandanaPersister
public void flushCaches()
flushCaches
in interface com.atlassian.bandana.BandanaPersister
public void remove(com.atlassian.bandana.BandanaContext context)
remove
in interface com.atlassian.bandana.BandanaPersister
public void remove(com.atlassian.bandana.BandanaContext context, java.lang.String key)
remove
in interface com.atlassian.bandana.BandanaPersister
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |