Top Description Fields Constructors Methods
net.sf.ehcache.store.disk

pack-priv final Class HashEntry

extends Object
Class Inheritance
Imports
net.sf.ehcache.pool.sizeof.annotations.IgnoreSizeOf, net.sf.ehcache.store.disk.DiskStorageFactory.DiskSubstitute, java.util.concurrent.atomic.AtomicBoolean

Internal entry structure used by the net.sf.ehcache.store.disk.Segment class.
Authors
Chris Dennis, Ludovic Orban

Field Summary

Modifier and TypeField and Description
protected volatile DiskStorageFactory.DiskSubstitute
element

Reference to the DiskSubstitute for this entry.

protected final AtomicBoolean
faulted

marks the entry as faulted, can't evict faulted things

protected final int
hash

Spread hash value for they key.

protected final Object
key

Key instance for this mapping.

protected final HashEntry
next

Reference to the next HashEntry in this chain.

Constructor Summary

AccessConstructor and Description
pack-priv
HashEntry(Object
key for this entry
key
,
int
spread-hash for this entry
hash
,
HashEntry
next HashEntry in the chain
next
,
DiskStorageFactory.DiskSubstitute
initial value for this entry
element
,
AtomicBoolean faulted)

Constructs a HashEntry instance mapping the supplied key, value pair and linking it to the supplied HashEntry

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

elementback to summary
protected volatile DiskStorageFactory.DiskSubstitute element

Reference to the DiskSubstitute for this entry.

faultedback to summary
protected final AtomicBoolean faulted

marks the entry as faulted, can't evict faulted things

hashback to summary
protected final int hash

Spread hash value for they key.

keyback to summary
protected final Object key

Key instance for this mapping.

Annotations
@IgnoreSizeOf
nextback to summary
protected final HashEntry next

Reference to the next HashEntry in this chain.

Annotations
@IgnoreSizeOf

Constructor Detail

HashEntryback to summary
pack-priv HashEntry(Object key, int hash, HashEntry next, DiskStorageFactory.DiskSubstitute element, AtomicBoolean faulted)

Constructs a HashEntry instance mapping the supplied key, value pair and linking it to the supplied HashEntry

Parameters
key:Object

key for this entry

hash:int

spread-hash for this entry

next:HashEntry

next HashEntry in the chain

element:DiskStorageFactory.DiskSubstitute

initial value for this entry