public class AbstractPersistentConcurrentOffHeapCache<K,V> extends AbstractConcurrentOffHeapCache<K,V> implements Persistent
AbstractConcurrentOffHeapMap.AggregateIterator<T>AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>segments| Constructor and Description |
|---|
AbstractPersistentConcurrentOffHeapCache(Factory<? extends PinnableSegment<K,V>> segmentFactory)
Create a concurrent map using a default number of segments.
|
AbstractPersistentConcurrentOffHeapCache(Factory<? extends PinnableSegment<K,V>> segmentFactory,
int concurrency)
Create a concurrent map with a defined number of segments.
|
| Modifier and Type | Method and Description |
|---|---|
void |
bootstrap(ObjectInput input) |
void |
close() |
void |
flush() |
void |
persist(ObjectOutput output) |
protected static int |
readSegmentCount(ObjectInput input) |
fill, getAndPin, isPinned, putPinned, segmentFor, setPinning, shrink, shrinkOthersclear, computeIfAbsentWithMetadata, computeIfPresentWithMetadata, computeWithMetadata, containsKey, containsValue, destroy, entrySet, fill, get, getAllocatedMemory, getAndSetMetadata, getConcurrency, getDataAllocatedMemory, getDataOccupiedMemory, getDataSize, getDataVitalMemory, getIndexFor, getMetadata, getOccupiedMemory, getRemovedSlotCount, getReprobeLength, getSegmentInternals, getSegments, getSize, getTableCapacity, getUsedSlotCount, getValueAndSetMetadata, getVitalMemory, handleOversizeMappingException, keySet, put, put, putIfAbsent, readLockAll, readUnlockAll, remove, remove, removeAllWithHash, removeNoReturn, replace, replace, segmentFor, size, values, writeLockAll, writeUnlockAllclone, equals, hashCode, isEmpty, putAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic AbstractPersistentConcurrentOffHeapCache(Factory<? extends PinnableSegment<K,V>> segmentFactory)
segmentFactory - factory used to create the map segmentspublic AbstractPersistentConcurrentOffHeapCache(Factory<? extends PinnableSegment<K,V>> segmentFactory, int concurrency)
segmentFactory - factory used to create the map segmentsconcurrency - number of segments in the mapIllegalArgumentException - if the supplied number of segments is
negativepublic void flush()
throws IOException
flush in interface PersistentIOExceptionpublic void persist(ObjectOutput output) throws IOException
persist in interface PersistentIOExceptionpublic void close()
throws IOException
close in interface PersistentIOExceptionpublic void bootstrap(ObjectInput input) throws IOException
bootstrap in interface PersistentIOExceptionprotected static int readSegmentCount(ObjectInput input) throws IOException
IOExceptionCopyright © 2015–2024. All rights reserved.