net.sf.ehcache.store
Class DiskStore.DiskElement
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DiskStore.DiskElement
public DiskStore.DiskElement()
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
true