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,
org.symphonyoss.s2.fugue.core.trace.ITraceContext trace)
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,
org.symphonyoss.s2.fugue.core.trace.ITraceContext trace) |
public WeakCache()
public WeakCache(IProducerImpl<V> producer)
public Collection<V> getAllCached()
public V cache(K key, V value, org.symphonyoss.s2.fugue.core.trace.ITraceContext trace)
key - The key.value - The object.trace - If non-null then notify all listeners using the given trace context.Copyright © 2018 Symphony Software Foundation. All rights reserved.