Package org.apache.openjpa.lib.util
Interface ReferenceMap
-
- All Superinterfaces:
java.util.Map
- All Known Implementing Classes:
ConcurrentReferenceHashMap
,ReferenceHashMap
public interface ReferenceMap extends java.util.Map
AMap
type that can hold its keys, values, or both with weak or soft references.- Author:
- Abe White
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
removeExpired
void removeExpired()
Purge stale entries.
-
keyExpired
void keyExpired(java.lang.Object value)
Overridable callback for when a key reference expires.- Parameters:
value
- the value for the expired key
-
valueExpired
void valueExpired(java.lang.Object key)
Overridable callback for when a value reference expires.- Parameters:
key
- the key for the expired value
-
-