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<String,Object> 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.
 Iterable<String> retrieveKeys(BandanaContext context)
          Retrieve all the keys belonging to the context.
 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<String,Object> 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.

retrieveKeys

Iterable<String> retrieveKeys(BandanaContext context)
Retrieve all the keys belonging to the context. Don't look at parent contexts.

Returns:
an Iterable containing the keys.

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



Copyright © 2010 Atlassian Pty Ltd. All Rights Reserved.