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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BambooCachingBandanaPersister
public BambooCachingBandanaPersister(com.atlassian.bandana.BandanaPersister delegate)
retrieve
@Nullable
public Object retrieve(com.atlassian.bandana.BandanaContext context,
String key)
- Specified by:
retrieve
in interface com.atlassian.bandana.BandanaPersister
retrieve
@NotNull
public Map<String,Object> retrieve(@NotNull
com.atlassian.bandana.BandanaContext context)
- Don't bother using the cache
- Specified by:
retrieve
in interface com.atlassian.bandana.BandanaPersister
- Parameters:
context
-
- Returns:
- a Map of values from the delegated persister
retrieveKeys
@NotNull
public Iterable<String> retrieveKeys(com.atlassian.bandana.BandanaContext context)
- Don't bother using the cache
- Specified by:
retrieveKeys
in interface com.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:
store
in interface com.atlassian.bandana.BandanaPersister
flushCaches
public void flushCaches()
- Specified by:
flushCaches
in interface com.atlassian.bandana.BandanaPersister
remove
public void remove(com.atlassian.bandana.BandanaContext context)
- Specified by:
remove
in interface com.atlassian.bandana.BandanaPersister
remove
public void remove(com.atlassian.bandana.BandanaContext context,
String key)
- Specified by:
remove
in interface com.atlassian.bandana.BandanaPersister
Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.