org.webmacro.util
Class ScalableMap
java.lang.Object
|
+--org.webmacro.util.AbstractScalableMap
|
+--org.webmacro.util.ScalableMap
- All Implemented Interfaces:
- SimpleMap
- public final class ScalableMap
- extends AbstractScalableMap
Reduce locking overhead for a map with few writers and many
readers. Writes are five times more expensive than a SimpleMap,
reads cost only slightly more. However, five readers can access
the same value simultaneously, without blocking.
This implementation uses SimpleHashMaps as its map implementation.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_SIZE
public static final int DEFAULT_SIZE
ScalableMap
public ScalableMap(int factor,
int size)
ScalableMap
public ScalableMap(int size)
ScalableMap
public ScalableMap()