ehcache

net.sf.ehcache.store
Class DiskStore.DiskElement

java.lang.Object
  extended by net.sf.ehcache.store.DiskStore.DiskElement
All Implemented Interfaces:
Serializable
Enclosing class:
DiskStore

public static final class DiskStore.DiskElement
extends Object
implements Serializable

A reference to an on-disk elements.

Copies of expiryTime and hitcount are held here as a performance optimisation, so that we do not need to load the data from Disk to get this often used information.

See Also:
Serialized Form

Constructor Summary
DiskStore.DiskElement()
           
 
Method Summary
 void free()
          free.
 long getExpiry()
           
 long getHitCount()
           
 Object getObjectKey()
           
 long getPosition()
           
 int getSize()
           
 boolean isValid()
          isValid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiskStore.DiskElement

public DiskStore.DiskElement()
Method Detail

getObjectKey

public Object getObjectKey()
Returns:
the key of this object

getHitCount

public long getHitCount()
Returns:
the hit count for the element

getExpiry

public long getExpiry()
Returns:
the time at which this element will expire

getSize

public int getSize()
Returns:
the size of this element on disk

getPosition

public long getPosition()
Returns:
the starting offset of this element on disk

free

public void free()
free.


isValid

public boolean isValid()
isValid.

Returns:
boolean

ehcache

true