|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fjank.jcache.persistence.CacheEventQueue
An event queue is used to propagate ordered cache events to the DiskCache. This is here to make the addition to the diskCache asynchronous, to increase performance. todo reprogram this to use oswego concurrency library instead.
Constructor Summary | |
CacheEventQueue(DiskCache cache,
java.lang.String cacheName)
Creates a new CacheEventQueue object. |
Method Summary | |
void |
addPutEvent(PurgatoryElement ce)
adds a purgatoryelement to this queue |
void |
destroy()
destroys this eventqueue |
java.lang.String |
toString()
returns a String representation of this eventqueue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CacheEventQueue(DiskCache cache, java.lang.String cacheName) throws DiskCacheException
cache
- the cache to send the objects to.cacheName
- the name of the cache
DiskCacheException
- if exceptions occur during disk
initialization.Method Detail |
public void destroy()
public java.lang.String toString()
public void addPutEvent(PurgatoryElement ce)
ce
- the element to add.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |