public class GuavaCacheProvider extends Object implements CacheProvider
CacheProvider implementation that uses Guava caches as in memory
storage.| Constructor and Description |
|---|
GuavaCacheProvider() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsBundle(Locale locale) |
boolean |
containsFormat(String cache,
Locale locale) |
boolean |
containsStrings(String cache,
Locale locale) |
ResourceBundle |
getBundle(Locale locale,
Callable<ResourceBundle> getCall) |
<T> T |
getFormat(String cache,
Locale locale,
Callable<T> getCall) |
String[] |
getStrings(String cache,
Locale locale,
Callable<String[]> getCall) |
ResourceBundle |
putBundle(Locale locale,
ResourceBundle bundle) |
<T> T |
putFormat(String cache,
Locale locale,
T format) |
String[] |
putStrings(String cache,
Locale locale,
String[] value) |
public boolean containsBundle(Locale locale)
containsBundle in interface CacheProviderpublic boolean containsFormat(String cache, Locale locale)
containsFormat in interface CacheProviderpublic boolean containsStrings(String cache, Locale locale)
containsStrings in interface CacheProviderpublic ResourceBundle getBundle(Locale locale, Callable<ResourceBundle> getCall)
getBundle in interface CacheProviderpublic <T> T getFormat(String cache, Locale locale, Callable<T> getCall)
getFormat in interface CacheProviderpublic String[] getStrings(String cache, Locale locale, Callable<String[]> getCall)
getStrings in interface CacheProviderpublic ResourceBundle putBundle(Locale locale, ResourceBundle bundle)
putBundle in interface CacheProviderpublic <T> T putFormat(String cache, Locale locale, T format)
putFormat in interface CacheProviderpublic String[] putStrings(String cache, Locale locale, String[] value)
putStrings in interface CacheProviderCopyright © 2015. All Rights Reserved.