K
- type of the stored keypublic class MultiQueueEntry<K> extends Object
Constructor and Description |
---|
MultiQueueEntry(K key,
byte queue,
long accessTime,
long lifeTime)
Constructor for the MultiQueueEntry object.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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 nodepublic 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 toCopyright © 2016 Egothor. All Rights Reserved.