getPinnedKeys

pin

Locks the given key and its value into the map. Objects pinned into
the map are not counted towards the maximum cache size, and are never
evicted implicitly. You may pin keys for which no value is in the map.

Returns:

true if the givne key's value was pinned; false if no value
for the given key is cached

unpin

entryRemoved

Invoked when a key-value pair is evicted from this data
structure. This is invoked with expired set to
true when an object is dropped because of space
requirements or through garbage collection of soft references.
It is invoked with expired set to false
when an object is explicitly removed via the remove(java.util.Map, java.lang.Object) or
clear() methods. This may be invoked more than once for a
given entry.

Parameters:

value - may be null if the value was a soft reference that has
been GCd