public class CacheStrategyDecorator<K,V> extends AbstractDecorator<CacheStrategy<K,V>> implements CacheStrategy<K,V>
CacheStrategy.| Constructor and Description |
|---|
CacheStrategyDecorator(CacheStrategy<K,V> decorated) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear all cache contents.
|
void |
destroy()
Perform the clean up.
|
V |
get(K key)
Restore a value from the cache.
|
void |
put(K key,
V value)
Put a value in the cache using a key.
|
getDecoratedObject, getOriginalDecoratedObject, getOriginalDecoratedObject, toStringpublic CacheStrategyDecorator(CacheStrategy<K,V> decorated)
public void put(K key, V value)
put in interface CacheStrategy<K,V>key - Object.value - Object.public V get(K key)
get in interface CacheStrategy<K,V>key - Objectpublic void clear()
clear in interface CacheStrategy<K,V>public void destroy()
destroy in interface CacheStrategy<K,V>Copyright © 2008-2014. All Rights Reserved.