public interface ReferenceMap
extends java.util.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(java.lang.Object value)
Overridable callback for when a key reference expires.
|
void |
removeExpired()
Purge stale entries.
|
void |
valueExpired(java.lang.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(java.lang.Object value)
value
- the value for the expired keyvoid valueExpired(java.lang.Object key)
key
- the key for the expired value