org.fjank.jcache.persistence
Class CacheEventQueue

java.lang.Object
  extended byorg.fjank.jcache.persistence.CacheEventQueue

public class CacheEventQueue
extends java.lang.Object

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

CacheEventQueue

public CacheEventQueue(DiskCache cache,
                       java.lang.String cacheName)
                throws DiskCacheException
Creates a new CacheEventQueue object.

Parameters:
cache - the cache to send the objects to.
cacheName - the name of the cache
Throws:
DiskCacheException - if exceptions occur during disk initialization.
Method Detail

destroy

public void destroy()
destroys this eventqueue


toString

public java.lang.String toString()
returns a String representation of this eventqueue

Returns:
a String representation of this eventqueue

addPutEvent

public void addPutEvent(PurgatoryElement ce)
adds a purgatoryelement to this queue

Parameters:
ce - the element to add.


Copyright © 2002-2004 Hosted by SourceForge. All Rights Reserved.