Package | Description |
---|---|
net.sf.ehcache.store.disk |
This package contains the disk store.
|
Modifier and Type | Field and Description |
---|---|
private DiskStorageFactory.DiskMarker |
DiskStorageFactory.DiskFreeTask.marker |
Modifier and Type | Method and Description |
---|---|
private DiskStorageFactory.DiskMarker |
DiskStorageFactory.alloc(Element element,
int size) |
DiskStorageFactory.DiskMarker |
DiskStorageFactory.DiskWriteTask.call() |
DiskStorageFactory.DiskMarker |
DiskStorageFactory.PersistentDiskWriteTask.call() |
private DiskStorageFactory.DiskMarker |
DiskStorageFactory.createMarker(long position,
int size,
Element element) |
protected DiskStorageFactory.DiskMarker |
DiskStorageFactory.write(Element element)
Write the given element to disk, and return the associated marker.
|
Modifier and Type | Method and Description |
---|---|
private void |
DiskStorageFactory.DiskExpiryTask.checkExpiry(DiskStorageFactory.DiskMarker marker,
long now) |
boolean |
DiskStore.fault(java.lang.Object key,
DiskStorageFactory.Placeholder expect,
DiskStorageFactory.DiskMarker fault)
Atomically switch (CAS) the
expect representation of this element for the
fault representation. |
(package private) boolean |
Segment.fault(java.lang.Object key,
int hash,
DiskStorageFactory.Placeholder expect,
DiskStorageFactory.DiskMarker fault)
Try to atomically switch (CAS) the
expect representation of this element for the
fault representation. |
protected void |
DiskStorageFactory.free(DiskStorageFactory.DiskMarker marker)
Free the given marker to be used by a subsequent write.
|
protected void |
DiskStorageFactory.markUsed(DiskStorageFactory.DiskMarker marker)
Mark this on-disk marker as used (hooks into the file space allocation structure).
|
boolean |
DiskStore.putRawIfAbsent(java.lang.Object key,
DiskStorageFactory.DiskMarker encoded)
Put the given encoded element directly into the store
|
(package private) boolean |
Segment.putRawIfAbsent(java.lang.Object key,
int hash,
DiskStorageFactory.DiskMarker encoded)
Add the supplied pre-encoded mapping.
|
protected Element |
DiskStorageFactory.read(DiskStorageFactory.DiskMarker marker)
Read the data at the given marker, and return the associated deserialized Element.
|
Constructor and Description |
---|
DiskFreeTask(java.util.concurrent.locks.Lock lock,
DiskStorageFactory.DiskMarker marker) |