public interface ReferenceMap extends Map
Map type that can hold its keys, values, or both with
weak or soft references.| Modifier and Type | Field and Description |
|---|---|
static int |
HARD |
static int |
SOFT |
static int |
WEAK |
| 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.
|
static final int HARD
static final int WEAK
static final int SOFT
void removeExpired()
void keyExpired(Object value)
value - the value for the expired keyvoid valueExpired(Object key)
key - the key for the expired valueCopyright © 2006–2018 Apache Software Foundation. All rights reserved.