public abstract class AbstractPersistentConcurrentOffHeapMap<K,V> extends AbstractConcurrentOffHeapMap<K,V> implements Persistent
AbstractConcurrentOffHeapMap.AggregateIterator<T>AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>segments| Constructor and Description |
|---|
AbstractPersistentConcurrentOffHeapMap(Factory<? extends Segment<K,V>> segmentFactory)
Create a concurrent map using a default number of segments.
|
AbstractPersistentConcurrentOffHeapMap(Factory<? extends Segment<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) |
clear, computeIfAbsentWithMetadata, computeIfPresentWithMetadata, computeWithMetadata, containsKey, containsValue, destroy, entrySet, fill, 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, segmentFor, size, values, writeLockAll, writeUnlockAllclone, equals, hashCode, isEmpty, putAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, replaceAllpublic AbstractPersistentConcurrentOffHeapMap(Factory<? extends Segment<K,V>> segmentFactory)
segmentFactory - factory used to create the map segmentspublic AbstractPersistentConcurrentOffHeapMap(Factory<? extends Segment<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.