|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.continuent.tungsten.replicator.thl.EventsCache
public class EventsCache
Implements a simple hash map to hold events. If the cache is full we age out old items in FIFO order.
| Constructor Summary | |
|---|---|
EventsCache(int cacheSize)
|
|
| Method Summary | |
|---|---|
THLEvent |
get(long seqno)
Look up and return the cached item, if found. |
boolean |
isEmpty()
|
void |
put(THLEvent thlEvent)
Add an event to the cache, clearing space if necessary. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EventsCache(int cacheSize)
| Method Detail |
|---|
public boolean isEmpty()
public void put(THLEvent thlEvent)
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic THLEvent get(long seqno)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||