public abstract static class DiskStorageFactory.DiskSubstitute
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private DiskStorageFactory |
factory |
protected long |
onHeapSize
Cached size of this mapping on the Java heap.
|
Constructor and Description |
---|
DiskSubstitute()
Create a disk substitute bound to no factory.
|
DiskSubstitute(DiskStorageFactory factory)
Create a disk substitute bound to the given factory.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
bindFactory(DiskStorageFactory factory)
Bind this marker to a given factory.
|
(package private) abstract long |
getExpirationTime()
Return the time at which this marker expires.
|
DiskStorageFactory |
getFactory()
Returns the
DiskStorageFactory instance that generated this DiskSubstitute |
(package private) abstract long |
getHitCount()
Return the total number of hits on this marker
|
(package private) abstract java.lang.Object |
getKey()
Return the key to which this marker is (or should be) mapped.
|
(package private) abstract void |
installed()
Mark the disk substitute as installed
|
protected transient volatile long onHeapSize
private transient volatile DiskStorageFactory factory
public DiskSubstitute()
DiskSubstitute(DiskStorageFactory factory)
factory
- the factory to bind to.abstract java.lang.Object getKey()
abstract long getHitCount()
abstract long getExpirationTime()
abstract void installed()
public final DiskStorageFactory getFactory()
DiskStorageFactory
instance that generated this DiskSubstitute
ElementProxyFactory
void bindFactory(DiskStorageFactory factory)
Used during deserialization of markers to associate them with the deserializing factory.
factory
- the factory to bind to