public interface ReferenceMap extends Map
Map
type that can hold its keys, values, or both with
weak or soft references.Modifier and Type | Method and Description |
---|---|
void |
keyExpired(Object value)
Overridable callback for when a key reference expires.
|
void |
removeExpired()
Purge stale entries.
|
void |
valueExpired(Object key)
Overridable callback for when a value reference expires.
|
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
void removeExpired()
void keyExpired(Object value)
value
- the value for the expired keyvoid valueExpired(Object key)
key
- the key for the expired valueCopyright © 2006–2022 Apache Software Foundation. All rights reserved.