Package com.atlassian.bamboo.bandana
Class BambooCachingBandanaPersister
- java.lang.Object
-
- com.atlassian.bamboo.bandana.BambooCachingBandanaPersister
-
- All Implemented Interfaces:
com.atlassian.bandana.BandanaPersister
public class BambooCachingBandanaPersister extends Object implements com.atlassian.bandana.BandanaPersister
More or less a copy of BandanaCachingPersister, but with null handling.
-
-
Constructor Summary
Constructors Constructor Description BambooCachingBandanaPersister(com.atlassian.bandana.BandanaPersister delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidflushCaches()voidremove(com.atlassian.bandana.BandanaContext context)voidremove(com.atlassian.bandana.BandanaContext context, String key)@NotNull Map<String,Object>retrieve(@NotNull com.atlassian.bandana.BandanaContext context)Don't bother using the cache@Nullable Objectretrieve(com.atlassian.bandana.BandanaContext context, String key)@NotNull Iterable<String>retrieveKeys(com.atlassian.bandana.BandanaContext context)Don't bother using the cachevoidstore(com.atlassian.bandana.BandanaContext context, String key, Object value)
-
-
-
Method Detail
-
retrieve
@Nullable public @Nullable Object retrieve(com.atlassian.bandana.BandanaContext context, String key)
- Specified by:
retrievein interfacecom.atlassian.bandana.BandanaPersister
-
retrieve
@NotNull public @NotNull Map<String,Object> retrieve(@NotNull @NotNull com.atlassian.bandana.BandanaContext context)
Don't bother using the cache- Specified by:
retrievein interfacecom.atlassian.bandana.BandanaPersister- Parameters:
context-- Returns:
- a Map of values from the delegated persister
-
retrieveKeys
@NotNull public @NotNull Iterable<String> retrieveKeys(com.atlassian.bandana.BandanaContext context)
Don't bother using the cache- Specified by:
retrieveKeysin interfacecom.atlassian.bandana.BandanaPersister- Parameters:
context-- Returns:
- a Iterable of keys from the delegated persister
-
store
public void store(com.atlassian.bandana.BandanaContext context, String key, Object value)- Specified by:
storein interfacecom.atlassian.bandana.BandanaPersister
-
flushCaches
public void flushCaches()
- Specified by:
flushCachesin interfacecom.atlassian.bandana.BandanaPersister
-
remove
public void remove(com.atlassian.bandana.BandanaContext context)
- Specified by:
removein interfacecom.atlassian.bandana.BandanaPersister
-
remove
public void remove(com.atlassian.bandana.BandanaContext context, String key)- Specified by:
removein interfacecom.atlassian.bandana.BandanaPersister
-
-