com.beasys.rmi.iiop
Class ObjectMap

java.lang.Object
  |
  +--java.util.AbstractMap
        |
        +--com.beasys.rmi.iiop.ObjectMap

public class ObjectMap
extends java.util.AbstractMap

Key to object mapping that expires. A key must be used at least once every OBJECT_HALF_LIFE_MILLIS to guarantee that its mapping is retained.


Constructor Summary
ObjectMap()
           
 
Method Summary
 java.util.Set entrySet()
          The union of sets from present and previous half-life period.
 java.lang.Object get(java.lang.Object key)
          Looks up and refreshes mapping.
 java.lang.Object put(java.lang.Object key, java.lang.Object val)
          Defines the mapping.
 
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, remove, size, toString, values
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ObjectMap

public ObjectMap()
Method Detail

entrySet

public java.util.Set entrySet()
The union of sets from present and previous half-life period. Required for AbstractMap.
Overrides:
entrySet in class java.util.AbstractMap

put

public java.lang.Object put(java.lang.Object key,
                            java.lang.Object val)
Defines the mapping.
Overrides:
put in class java.util.AbstractMap

get

public java.lang.Object get(java.lang.Object key)
Looks up and refreshes mapping.
Overrides:
get in class java.util.AbstractMap