public class EhcacheBundleCache extends Object implements BundleCache
| Constructor and Description |
|---|
EhcacheBundleCache(net.sf.ehcache.Ehcache cache) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
Bundle |
get(long id)
get Bundle with given
id from cache |
String |
print()
prints String representation of whole cache state
|
void |
put(Bundle bundle)
add bundle to cache
|
void |
remove(long id)
removes bundle with given
id from cache. |
String |
toString() |
public Bundle get(long id)
BundleCacheid from cacheget in interface BundleCacheid - bundle id to get from cacheid in cachepublic void put(Bundle bundle)
BundleCacheput in interface BundleCachebundle - to store in cachepublic void remove(long id)
BundleCacheid from cache. Nothing happens if there is no bundle with given id in cacheremove in interface BundleCacheid - bundle id to removepublic void clear()
clear in interface Invalidablepublic String print()
BundleCacheprint in interface BundleCacheCopyright © 2021. All rights reserved.