CacheLIRS.Entry

A cache entry. Each entry is either hot (low inter-reference recency; LIR), cold (high inter-reference recency; HIR), or non-resident-cold. Hot entries are in the stack only. Cold entries are in the queue, and may be in the stack. Non-resident-cold entries have their value set to null and are in the stack and in the non-resident queue.

Methods
boolean isHot()
Whether this entry is hot.
boolean isHot()
Whether this entry is hot. Cold entries are in one of the two queues.
Returns:
whether the entry is hot

Fields
static K key
static CacheLIRS.Entry mapNext
static int memory
static CacheLIRS.Entry queueNext
static CacheLIRS.Entry queuePrev
static CacheLIRS.Entry stackNext
static CacheLIRS.Entry stackPrev
static int topMove
static V value

key

The key.

mapNext

The next entry in the map (the chained entry).

memory

The estimated memory used.

queueNext

The next entry in the queue (either the resident queue or the non-resident queue).

queuePrev

The previous entry in the queue.

stackNext

The next entry in the stack.

stackPrev

The previous entry in the stack.

topMove

When the item was last moved to the top of the stack.

value

The value. Set to null for non-resident-cold entries.