wt.httpgw
Class ServerAffinityCache

java.lang.Object
  extended byjava.util.AbstractMap
      extended bywt.util.Cache
          extended bywt.httpgw.ServerAffinityCache
All Implemented Interfaces:
Map

class ServerAffinityCache
extends Cache


Nested Class Summary
 
Nested classes inherited from class wt.util.Cache
Cache.CacheEntry
 
Nested classes inherited from class java.util.AbstractMap
 
Nested classes inherited from class java.util.Map
Map.Entry
 
Field Summary
(package private)  int count
           
(package private)  ThreadGroup next
           
 
Fields inherited from class wt.util.Cache
agedOut, cacheSize, hashCodes, hits, keys, misses, modCount, tableSize, values
 
Constructor Summary
(package private) ServerAffinityCache(int size)
           
 
Method Summary
protected  void overflow(Object key, Object value)
          Called when an entry is being aged out of the cache.
(package private)  void setAffinity(String key)
           
 
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
 
Methods inherited from class java.util.AbstractMap
clone, equals, hashCode, isEmpty, putAll, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

next

ThreadGroup next

count

int count
Constructor Detail

ServerAffinityCache

ServerAffinityCache(int size)
Method Detail

setAffinity

void setAffinity(String key)

overflow

protected 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 key
value - the entry value