public class WeakMonitorCache<K,V extends Comparable<V>> extends WeakCache<K,IMonitor<V>>
| Constructor and Description |
|---|
WeakMonitorCache(SynchronousProducer<IMonitor<V>> producer,
IMonitorFactory<K,V> monitorFactory) |
| Modifier and Type | Method and Description |
|---|---|
IMonitor<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.
|
cache, fetch, getAllCached, putpublic WeakMonitorCache(SynchronousProducer<IMonitor<V>> producer, IMonitorFactory<K,V> monitorFactory)
public IMonitor<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.