|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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,
String key)
|
Map<String,Object> |
retrieve(com.atlassian.bandana.BandanaContext context)
This implementation is extremely processor intensive but correct. |
Object |
retrieve(com.atlassian.bandana.BandanaContext context,
String key)
Retrieves the value associated with the key from the given context. |
Iterable<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,
String key,
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 Object retrieve(com.atlassian.bandana.BandanaContext context,
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.BandanaPersisterpublic Map<String,Object> retrieve(com.atlassian.bandana.BandanaContext context)
retrieve in interface com.atlassian.bandana.BandanaPersistercontext - context to retrieve content for.
String key to Object valuepublic Iterable<String> retrieveKeys(com.atlassian.bandana.BandanaContext bandanaContext)
retrieveKeys in interface com.atlassian.bandana.BandanaPersisterbandanaContext - the context for which to get keys
public void store(com.atlassian.bandana.BandanaContext context,
String key,
Object value)
store in interface com.atlassian.bandana.BandanaPersisterpublic void flushCaches()
flushCaches in interface com.atlassian.bandana.BandanaPersisterpublic void remove(com.atlassian.bandana.BandanaContext context)
remove in interface com.atlassian.bandana.BandanaPersister
public void remove(com.atlassian.bandana.BandanaContext context,
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 | |||||||||