org.sandev.basics.util
Class NodeLocalIDCache

java.lang.Object
  extended by org.sandev.basics.util.IDCacheBase
      extended by org.sandev.basics.util.NodeLocalIDCache
All Implemented Interfaces:
IDCache

public class NodeLocalIDCache
extends IDCacheBase
implements IDCache

A simple IDCache for use by any single node. Any node can create a new cache instance for use.

WARNING: Having each node use their own cache can lead to memory bloat and inefficient retrieval, depending on usage.


Field Summary
 
Fields inherited from class org.sandev.basics.util.IDCacheBase
callback, map, revisionCheck, timeToLiveMillis
 
Constructor Summary
NodeLocalIDCache()
           
 
Method Summary
 
Methods inherited from class org.sandev.basics.util.IDCacheBase
checkRevisionNumber, cleanup, clear, find, getCallback, getInstance, getMap, getSortedItems, getStats, getTimeToLiveMillis, idToKey, init, putInstance, removeInstance, setCallback, setRevisionCheck, setTimeToLiveMillis
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.sandev.basics.util.IDCache
cleanup, clear, find, getCallback, getInstance, getMap, getStats, getTimeToLiveMillis, putInstance, removeInstance, setCallback, setTimeToLiveMillis
 

Constructor Detail

NodeLocalIDCache

public NodeLocalIDCache()