|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.egothor.cache.multiQueue.MultiQueueEntry<K>
K - type of the stored keypublic class MultiQueueEntry<K>
Represents a node that holds information about key, access and expire time, frequency and queue number.
| Constructor Summary | |
|---|---|
MultiQueueEntry(K key,
byte queue,
long accessTime,
long lifeTime)
Constructor for the MultiQueueEntry object. |
|
| Method Summary | |
|---|---|
long |
getExpireTime()
Returns the expire time of the node. |
long |
getFrequency()
Returns the value of frequency counter of this node. |
K |
getKey()
Gets the key this node is associated with. |
byte |
getQueue()
Returns the number of the queue this node resides in. |
long |
incrementFrequency()
Increments the frequency counter of this node. |
long |
lastAccessTime()
Returns the last access time of the node |
long |
setExpireTime(long newExpireTime)
Sets the expire time of the node. |
byte |
setQueue(byte newQueue)
Sets the number of queue this node is currently in. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiQueueEntry(K key,
byte queue,
long accessTime,
long lifeTime)
key - key this node is associated withqueue - number of queue this node is inaccessTime - access time of the nodelifeTime - life time of the node| Method Detail |
|---|
public K getKey()
public byte getQueue()
public byte setQueue(byte newQueue)
newQueue - new number of queue this node resides in.
public long getFrequency()
public long incrementFrequency()
public long lastAccessTime()
public long getExpireTime()
public long setExpireTime(long newExpireTime)
newExpireTime - new expire time to set the node to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||