All new elements are automatically scheduled for writing to disk.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private class | DiskStore.DiskStoreDiskPoolParticipant
PoolParticipant that is used with the DiskPool. |
| private class | DiskStore.DiskStoreHeapPoolParticipant
PoolParticipant that is used with the HeapPool. |
| private abstract class | DiskStore.DiskStorePoolParticipant
PoolParticipant that encapsulate shared logic for both DiskStorePoolParticipant |
| private class | DiskStore.DiskStoreStripedReadWriteLock
StripedReadWriteLock impl. |
| pack-priv abstract class | DiskStore.HashIterator
Superclass for all store iterators. |
| private class | DiskStore.KeyIterator
Iterator over the store key set. |
| pack-priv class | DiskStore.KeySet
Key set implementation for the DiskStore |
| private class | DiskStore.LockProvider
LockProvider implementation that uses the segment locks. |
| private static class | DiskStore.ReadWriteLockSync
Sync implementation that wraps the segment locks |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final float | |
| private static final int | |
| private final DiskStorageFactory | |
| private final OperationObserver | |
| private static final int | |
| private static final int | |
| private static final int | |
| private final OperationObserver | |
| private volatile Set | |
| private volatile CacheLockProvider | |
| private final PoolAccessor | |
| private final PoolAccessor | |
| private final OperationObserver | |
| private final OperationObserver | |
| private static final int | |
| private final Random | |
| private final Segment[] | |
| private final int | |
| private static final int | |
| private static final int | |
| private final AtomicReference | |
| private static final int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | bufferFull()
Implements net. |
| public void | changeDiskCapacity(int
the new max elements on disk newCapacity)Change the disk capacity, in number of elements |
| public void | |
| public boolean | containsKey(Object
The Element key key)Implements net. |
| public boolean | containsKeyInMemory(Object
The Element key key)Implements net. |
| public boolean | containsKeyOffHeap(Object
The Element key key)Implements net. |
| public boolean | containsKeyOnDisk(Object
The Element key key)Implements net. |
| public static DiskStore | |
| public static DiskStore | |
| public static Store | Returns: a DiskBackedMemoryStore instancethe cache cache, Pool the pool tracking on-heap usage onHeapPool, Pool the pool tracking on-disk usage onDiskPool)Create a DiskBackedMemoryStore instance |
| public StripedReadWriteLock | createStripedReadWriteLock()
Implements net. |
| public void | |
| public boolean | Returns: true on a successful removekey to match against key, DiskStorageFactory.optional value to match against substituteRemove the matching mapping. |
| public Element | Returns: the evicted element on a successful removekey to match against key, DiskStorageFactory.optional value to match against substituteRemove the matching mapping. |
| public void | |
| public Element | fault(final Object key, final boolean updateStats)
Implements net. |
| public boolean | Returns: true if fault was installedkey to which this element (proxy) is mapped key, DiskStorageFactory.element (proxy) expected expect,element (proxy) to install faultAtomically switch (CAS) the |
| public void | flush(final Element element)
Implements net. |
| public void | |
| public Element | |
| public File | Returns: a reference to the data file backing this store.Return a reference to the data file backing this store. |
| public File | Returns: a reference to the index file for this store.Return a reference to the index file for this store. |
| public Policy | |
| public int | getInMemorySize()
Implements net. |
| public long | getInMemorySizeInBytes()
Implements net. |
| public Object | getInternalContext()
Implements net. |
| public List | getKeys()
Implements net. |
| public Object | getMBean()
Implements net. |
| public int | getOffHeapSize()
Implements net. |
| public long | getOffHeapSizeInBytes()
Implements net. |
| public int | getOnDiskSize()
Implements net. |
| public long | getOnDiskSizeInBytes()
Implements net. |
| public Element | getQuiet(Object key)
Implements net. Element from the Store, without updating statistics
|
| public List | Returns: list of sampled elements/element substitutegenerator of the given type factory, int minimum number of elements to return sampleSize, Object a key on which we are currently working keyHint)Select a random sample of elements generated by the supplied factory. |
| public int | |
| public Status | |
| public int | getTerracottaClusteredSize()
Implements net. |
| private static int | |
| public boolean | |
| public Set | |
| private static long | |
| public boolean | |
| public boolean | putFaulted(final Element element)
Implements net. |
| public Element | putIfAbsent(Element
element to be added element)Implements net. |
| public boolean | Returns: true if the encoded element was installedthe key of the element key, DiskStorageFactory.the encoded element encodedPut the given encoded element directly into the store |
| public boolean | putWithWriter(Element element, CacheWriterManager writerManager)
Implements net. |
| public Element | |
| public void | removeAll()
Implements net. |
| public Element | removeElement(Element
Element to be removed element, ElementValueComparator ElementValueComparator to use to compare elements comparator)Implements net. |
| public Element | removeWithWriter(Object key, CacheWriterManager writerManager)
Implements net. |
| public boolean | replace(Element
Element to be test against old, Element Element to be cached element, ElementValueComparator ElementValueComparator to use to compare elements comparator)Implements net. |
| public Element | replace(Element
Element to be cached element)Implements net. |
| private Segment | |
| public void | setInMemoryEvictionPolicy(Policy
the new policy policy)Implements net. |
| public Object | Returns: Element or ElementSubstitutekey to lookup key)Return the unretrieved (undecoded) value for this key |
| private static long |