com.atlassian.bandana
Interface BandanaPersister

All Known Implementing Classes:
CachingBandanaPersister, MemoryBandanaPersister

public interface BandanaPersister


Method Summary
 void flushCaches()
          Flush all caches of this persister.
 void remove(BandanaContext context)
          Remove the storage of data associated with this context
 void remove(BandanaContext context, String key)
          Remove the storage of data associated with this context, under the key
 Map retrieve(BandanaContext context)
          Retrieve all the values belonging to the context.
 Object retrieve(BandanaContext context, String key)
          Retrieve a value by its context/key tuple.
 void store(BandanaContext context, String key, Object value)
          Store a context/key/value triplet.
 

Method Detail

retrieve

Object retrieve(BandanaContext context,
                String key)
Retrieve a value by its context/key tuple.


retrieve

Map retrieve(BandanaContext context)
Retrieve all the values belonging to the context. Don't look at parent contexts.

Returns:
a Map containing the keys and values.

store

void store(BandanaContext context,
           String key,
           Object value)
Store a context/key/value triplet.


flushCaches

void flushCaches()
Flush all caches of this persister.


remove

void remove(BandanaContext context)
Remove the storage of data associated with this context


remove

void remove(BandanaContext context,
            String key)
Remove the storage of data associated with this context, under the key



Atlassian Bandana is developed by Atlassian Software Systems.