|
Jive Forums API (5.5.20.2-oracle) Developer Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jivesoftware.util.CacheObject
public final class CacheObject
Wrapper for all objects put into cache. It's primary purpose is to maintain references to the linked lists that maintain the creation time of the object and the ordering of the most used objects. This class is optimized for speed rather than strictly correct encapsulation.
Field Summary | |
---|---|
LinkedListNode |
ageListNode
A reference to the node in the age order list. |
LinkedListNode |
lastAccessedListNode
A reference to the node in the cache order list. |
java.lang.Object |
object
Underlying object wrapped by the CacheObject. |
int |
readCount
A count of the number of times the object has been read from cache. |
int |
size
The size of the Cacheable object. |
Constructor Summary | |
---|---|
CacheObject(java.lang.Object object,
int size)
Creates a new cache object wrapper. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.Object object
public int size
public LinkedListNode lastAccessedListNode
public LinkedListNode ageListNode
public int readCount
Constructor Detail |
---|
public CacheObject(java.lang.Object object, int size)
object
- the underlying Object to wrap.size
- the size of the Cachable object in bytes.Method Detail |
---|
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |