|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.jca.adapters.jdbc.util.LRUCachePolicy.LRUList
public class LRUCachePolicy.LRUList

Double queued list used to store cache entries.
| Constructor Summary | |
|---|---|
protected |
LRUCachePolicy.LRUList()
Creates a new double queued list. |
| Method Summary | |
|---|---|
protected void |
capacityChanged(int oldCapacity)
Callback that signals that the capacity of the cache is changed. |
protected void |
clear()
clear |
protected void |
demote()
Demotes from the cache the least used entry. |
protected void |
entryAdded(LRUCachePolicy.LRUCacheEntry entry)
Callback that signals that the given entry has been added to the cache. |
protected void |
entryPromotion(LRUCachePolicy.LRUCacheEntry entry)
Callback that signals that the given entry is just about to be added. |
protected void |
entryRemoved(LRUCachePolicy.LRUCacheEntry entry)
Callback that signals that the given entry has been removed from the cache. |
int |
getCacheMiss()
Get the cacheMiss. |
int |
getCapacity()
Get the capacity. |
int |
getCount()
Get the count. |
LRUCachePolicy.LRUCacheEntry |
getHead()
Get the head. |
int |
getMaxCapacity()
Get the maxCapacity. |
int |
getMinCapacity()
Get the minCapacity. |
LRUCachePolicy.LRUCacheEntry |
getTail()
Get the tail. |
protected void |
promote(LRUCachePolicy.LRUCacheEntry entry)
Promotes the cache entry entry to the last used position
of the list. |
protected void |
remove(LRUCachePolicy.LRUCacheEntry entry)
Removes from the cache list the specified entry. |
void |
setCacheMiss(int cacheMiss)
Set the cacheMiss. |
void |
setCapacity(int capacity)
Set the capacity. |
void |
setCount(int count)
Set the count. |
void |
setHead(LRUCachePolicy.LRUCacheEntry head)
Set the head. |
void |
setMaxCapacity(int maxCapacity)
Set the maxCapacity. |
void |
setMinCapacity(int minCapacity)
Set the minCapacity. |
void |
setTail(LRUCachePolicy.LRUCacheEntry tail)
Set the tail. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected LRUCachePolicy.LRUList()
| Method Detail |
|---|
protected void promote(LRUCachePolicy.LRUCacheEntry entry)
entry to the last used position
of the list.
entry - the object to be promoted, cannot be null
IllegalStateException - if this method is called with a full cachedemote()protected void demote()
promote(org.jboss.jca.adapters.jdbc.util.LRUCachePolicy.LRUCacheEntry)protected void remove(LRUCachePolicy.LRUCacheEntry entry)
entry - entryprotected void entryPromotion(LRUCachePolicy.LRUCacheEntry entry)
entry - entryprotected void entryAdded(LRUCachePolicy.LRUCacheEntry entry)
entry - entryprotected void entryRemoved(LRUCachePolicy.LRUCacheEntry entry)
entry - entryprotected void capacityChanged(int oldCapacity)
oldCapacity - the capacity before the change happenedprotected void clear()
public String toString()
toString in class Objectpublic final int getMaxCapacity()
public final void setMaxCapacity(int maxCapacity)
maxCapacity - The maxCapacity to set.public final int getMinCapacity()
public final void setMinCapacity(int minCapacity)
minCapacity - The minCapacity to set.public final int getCapacity()
public final void setCapacity(int capacity)
capacity - The capacity to set.public final int getCount()
public final void setCount(int count)
count - The count to set.public final LRUCachePolicy.LRUCacheEntry getHead()
public final void setHead(LRUCachePolicy.LRUCacheEntry head)
head - The head to set.public final LRUCachePolicy.LRUCacheEntry getTail()
public final void setTail(LRUCachePolicy.LRUCacheEntry tail)
tail - The tail to set.public final int getCacheMiss()
public final void setCacheMiss(int cacheMiss)
cacheMiss - The cacheMiss to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||