Package org.objectweb.joram.mom.proxies
Class UserAgent.SharedCtx
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap<Integer,Integer>
-
- org.objectweb.joram.mom.proxies.UserAgent.SharedCtx
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<Integer,Integer>
- Enclosing class:
- UserAgent
class UserAgent.SharedCtx extends LinkedHashMap<Integer,Integer>
This kind of SharedCts (LinkedHashMap) is well-suited to building LRU caches. Note (AF): It seems that only the key is used to determine the context id, the entry value seems never used. This structure is in fact a list of context identifiers whose elements are ordered according to LRU.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUIDdefine serialVersionUID for interoperability, fix with 5.15.0 value
-
Constructor Summary
Constructors Constructor Description SharedCtx(int ctxId, int requestId)
-
Method Summary
-
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
-
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
define serialVersionUID for interoperability, fix with 5.15.0 value- See Also:
- Constant Field Values
-
-