Package | Description |
---|---|
net.sf.ehcache.store.disk |
This package contains the disk store.
|
Modifier and Type | Class and Description |
---|---|
static class |
DiskStorageFactory.DiskMarker
DiskMarker instances point to the location of their
associated serialized Element instance.
|
(package private) class |
DiskStorageFactory.Placeholder
Placeholder instances are put in place to prevent
duplicate write requests while Elements are being
written to disk.
|
Modifier and Type | Field and Description |
---|---|
protected DiskStorageFactory.DiskSubstitute |
HashEntry.element
Reference to the DiskSubstitute for this entry.
|
Modifier and Type | Method and Description |
---|---|
DiskStorageFactory.DiskSubstitute |
DiskStorageFactory.create(Element element)
Create a disk substitute for an element
|
private DiskStorageFactory.DiskSubstitute |
DiskStorageFactory.getDiskEvictionTarget(java.lang.Object keyHint,
int size) |
Modifier and Type | Method and Description |
---|---|
java.util.List<DiskStorageFactory.DiskSubstitute> |
DiskStore.getRandomSample(ElementSubstituteFilter factory,
int sampleSize,
java.lang.Object keyHint)
Select a random sample of elements generated by the supplied factory.
|
Modifier and Type | Method and Description |
---|---|
boolean |
DiskStore.evict(java.lang.Object key,
DiskStorageFactory.DiskSubstitute substitute)
Remove the matching mapping.
|
(package private) Element |
Segment.evict(java.lang.Object key,
int hash,
DiskStorageFactory.DiskSubstitute value)
Remove the matching mapping.
|
(package private) Element |
Segment.evict(java.lang.Object key,
int hash,
DiskStorageFactory.DiskSubstitute value,
boolean notify)
Remove the matching mapping.
|
Element |
DiskStore.evictElement(java.lang.Object key,
DiskStorageFactory.DiskSubstitute substitute)
Remove the matching mapping.
|
void |
DiskStorageFactory.free(java.util.concurrent.locks.Lock lock,
DiskStorageFactory.DiskSubstitute substitute)
Free any manually managed resources used by this
DiskStorageFactory.DiskSubstitute . |
void |
DiskStorageFactory.free(java.util.concurrent.locks.Lock lock,
DiskStorageFactory.DiskSubstitute substitute,
boolean faultFailure)
Free any manually managed resources used by this
DiskStorageFactory.DiskSubstitute . |
Element |
DiskStorageFactory.retrieve(DiskStorageFactory.DiskSubstitute object)
Decodes the supplied
DiskStorageFactory.DiskSubstitute . |
Element |
DiskStorageFactory.retrieve(DiskStorageFactory.DiskSubstitute object,
Segment segment)
Decodes the supplied
DiskStorageFactory.DiskSubstitute , updating statistics. |
Modifier and Type | Method and Description |
---|---|
(package private) void |
Segment.addRandomSample(ElementSubstituteFilter filter,
int sampleSize,
java.util.Collection<DiskStorageFactory.DiskSubstitute> sampled,
int seed)
Select a random sample of elements generated by the supplied factory.
|
Constructor and Description |
---|
HashEntry(java.lang.Object key,
int hash,
HashEntry next,
DiskStorageFactory.DiskSubstitute element)
Constructs a HashEntry instance mapping the supplied key, value pair
and linking it to the supplied HashEntry
|