java.lang.Object |
↳ |
com.atlassian.confluence.setup.bandana.ConfluenceCachingBandanaPersister |
Class Overview
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.
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
com.atlassian.bandana.BandanaPersister
void
|
flushCaches()
|
void
|
remove(BandanaContext arg0, String arg1)
|
void
|
remove(BandanaContext arg0)
|
Map<String, Object>
|
retrieve(BandanaContext arg0)
|
Object
|
retrieve(BandanaContext arg0, String arg1)
|
Iterable<String>
|
retrieveKeys(BandanaContext arg0)
|
void
|
store(BandanaContext arg0, String arg1, Object arg2)
|
|
Public Constructors
public
ConfluenceCachingBandanaPersister
()
Public Methods
public
void
flushCaches
()
public
void
remove
(BandanaContext context, String key)
public
void
remove
(BandanaContext context)
public
Map<String, Object>
retrieve
(BandanaContext context)
This implementation is extremely processor intensive but correct. The assumption is that this method NEVER
gets called.
Parameters
context
| context to retrieve content for. |
public
Object
retrieve
(BandanaContext context, String key)
Retrieves the value associated with the key from the given context. If
the context does not exist, or the key is not found in the context, this
method returns null.
Assumes that any BandanaContext we are passed is a KeyedBandanaContext because that's how Confluence
uses Bandana.
public
Iterable<String>
retrieveKeys
(BandanaContext bandanaContext)
Parameters
bandanaContext
| the context for which to get keys |
Returns
- the keys for the given context
public
void
setPersister
(BandanaPersister persister)
public
void
store
(BandanaContext context, String key, Object value)