wt.util
Class WrappedSocket.SocketCache
java.lang.Object
java.util.AbstractMap
wt.util.Cache
wt.util.WrappedSocket.SocketCache
- All Implemented Interfaces:
- Map
- Enclosing class:
- WrappedSocket
- static class WrappedSocket.SocketCache
- extends Cache
Nested classes inherited from class java.util.AbstractMap |
|
Fields inherited from class wt.util.Cache |
agedOut, cacheSize, count, entrySet, hashCodes, hits, keys, keySet, misses, modCount, tableSize, values |
Method Summary |
void |
overflow(Object key,
Object value)
Called when an entry is being aged out of the cache. |
Methods inherited from class wt.util.Cache |
clear, containsKey, containsValue, createEntry, entries, entrySet, find, get, getAndRemove, getAndReplace, getKeys, keySet, link, print, put, remove, size, toString, touch |
WrappedSocket.SocketCache
public WrappedSocket.SocketCache(int size)
overflow
public void overflow(Object key,
Object value)
- Description copied from class:
Cache
- Called when an entry is being aged out of the cache.
Can be overriden by subclasses that want to take some action when
an entry is being aged out of the cache due to overflow.
It is only called when an entry is aged out due to overflow,
not when entries are explicitly removed or the cache is cleared.
It is called before the entry is removed from the cache.
- Overrides:
overflow
in class Cache
- Parameters:
key
- the entry keyvalue
- the entry value