final class DiskStorageFactory.Placeholder extends DiskStorageFactory.DiskSubstitute
Modifier and Type | Field and Description |
---|---|
private Element |
element |
private boolean |
failedToFlush |
private java.lang.Object |
key |
onHeapSize
Constructor and Description |
---|
Placeholder(Element element)
Create a Placeholder wrapping the given element and key.
|
Modifier and Type | Method and Description |
---|---|
(package private) Element |
getElement()
Return the element that this Placeholder is wrapping.
|
(package private) long |
getExpirationTime()
Return the time at which this marker expires.
|
(package private) long |
getHitCount()
Return the total number of hits on this marker
|
(package private) java.lang.Object |
getKey()
Return the key to which this marker is (or should be) mapped.
|
(package private) boolean |
hasFailedToFlush()
Whether flushing this to disk ever failed
|
void |
installed()
Mark the disk substitute as installed
|
private void |
setFailedToFlush(boolean failedToFlush) |
bindFactory, getFactory
private final java.lang.Object key
private final Element element
private volatile boolean failedToFlush
Placeholder(Element element)
element
- the element to wrapboolean hasFailedToFlush()
private void setFailedToFlush(boolean failedToFlush)
public void installed()
installed
in class DiskStorageFactory.DiskSubstitute
java.lang.Object getKey()
getKey
in class DiskStorageFactory.DiskSubstitute
long getHitCount()
getHitCount
in class DiskStorageFactory.DiskSubstitute
long getExpirationTime()
DiskStorageFactory.DiskSubstitute
getExpirationTime
in class DiskStorageFactory.DiskSubstitute
Element getElement()