|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectno.feide.moria.store.TicketTTLEvictionAlgorithm
public final class TicketTTLEvictionAlgorithm
This eviction algorithm expires cache elements after a fixed period, aka Time To Live.
| Nested Class Summary | |
|---|---|
private static class |
TicketTTLEvictionAlgorithm.NodeEntry
Represents a cache node. |
| Field Summary | |
|---|---|
private no.feide.moria.log.MessageLogger |
messageLogger
The logger used by this class. |
private EDU.oswego.cs.dl.util.concurrent.SyncList |
nodeList
Synchronized list of nodes. |
private EDU.oswego.cs.dl.util.concurrent.SyncMap |
nodeMap
Synchronized hash map of nodes. |
| Constructor Summary | |
|---|---|
TicketTTLEvictionAlgorithm()
Constructs a new instance. |
|
| Method Summary | |
|---|---|
void |
process(org.jboss.cache.eviction.Region region)
Perfoms the eviction algorithm. |
private void |
processAddedNodes(org.jboss.cache.eviction.Region region,
org.jboss.cache.Fqn fqn)
Adds nodes to eviction data structures. |
private void |
processRemovedNodes(org.jboss.cache.Fqn fqn)
Removes nodes from eviction data structures. |
private void |
prune(org.jboss.cache.eviction.Region region)
Prunes a region of the tree. |
void |
resetEvictionQueue(org.jboss.cache.eviction.Region region)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final no.feide.moria.log.MessageLogger messageLogger
private EDU.oswego.cs.dl.util.concurrent.SyncList nodeList
private EDU.oswego.cs.dl.util.concurrent.SyncMap nodeMap
| Constructor Detail |
|---|
public TicketTTLEvictionAlgorithm()
| Method Detail |
|---|
public void process(org.jboss.cache.eviction.Region region)
throws org.jboss.cache.eviction.EvictionException
process in interface org.jboss.cache.eviction.EvictionAlgorithmorg.jboss.cache.eviction.EvictionExceptionEvictionAlgorithm.process(org.jboss.cache.eviction.Region)public void resetEvictionQueue(org.jboss.cache.eviction.Region region)
resetEvictionQueue in interface org.jboss.cache.eviction.EvictionAlgorithm
private void processAddedNodes(org.jboss.cache.eviction.Region region,
org.jboss.cache.Fqn fqn)
region - Region of tree.fqn - Fully qualified name.private void processRemovedNodes(org.jboss.cache.Fqn fqn)
fqn - Fully qualified name.
private void prune(org.jboss.cache.eviction.Region region)
throws org.jboss.cache.eviction.EvictionException
region - Region of tree.
org.jboss.cache.eviction.EvictionException - If eviction is interrupted or fails.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||