org.xith3d.utility.cache
Class CacheNode<T>

java.lang.Object
  extended by org.xith3d.utility.cache.CacheNode<T>

public class CacheNode<T>
extends java.lang.Object

Class used to store information on the cached item. Since this cached node itself has memory usage, only heavyweight items should themselves be cached.


Field Summary
protected  T o
           
 
Constructor Summary
CacheNode(T o)
           
 
Method Summary
 int getNumRequested()
           
 int getNumUsers()
           
 T getO()
           
 long getTimeCreated()
           
 long getTimeLastAccessed()
           
 void setNumRequested(int numRequested)
           
 void setNumUsers(int numUsers)
           
 void setO(T o)
           
 void setTimeCreated(long timeCreated)
           
 void setTimeLastAccessed(long timeLastAccessed)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

o

protected T o
Constructor Detail

CacheNode

public CacheNode(T o)
Method Detail

getTimeCreated

public long getTimeCreated()

getTimeLastAccessed

public long getTimeLastAccessed()

getNumUsers

public int getNumUsers()

setNumUsers

public void setNumUsers(int numUsers)

setO

public void setO(T o)

getO

public T getO()

setTimeCreated

public void setTimeCreated(long timeCreated)

setTimeLastAccessed

public void setTimeLastAccessed(long timeLastAccessed)

getNumRequested

public int getNumRequested()

setNumRequested

public void setNumRequested(int numRequested)