public class WeakCache<K,V> extends Object
| Constructor and Description |
|---|
WeakCache() |
WeakCache(IProducerImpl<V> producer) |
| Modifier and Type | Method and Description |
|---|---|
V |
cache(K key,
V value,
boolean notify)
Cache the given object as the current version unless it is in the
cache already, in which case return the existing value.
|
V |
fetch(K k) |
Collection<V> |
getAllCached() |
protected void |
put(K key,
V value,
boolean notify) |
public WeakCache()
public WeakCache(IProducerImpl<V> producer)
public Collection<V> getAllCached()
public V cache(K key, V value, boolean notify)
key - The key.value - The object.notify - If true then notify all listeners.Copyright © 2018 Symphony Software Foundation. All rights reserved.