org.terracotta.offheapstore.disk.persistent
Class AbstractPersistentConcurrentOffHeapMap<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
org.terracotta.offheapstore.concurrent.AbstractConcurrentOffHeapMap<K,V>
org.terracotta.offheapstore.disk.persistent.AbstractPersistentConcurrentOffHeapMap<K,V>
- All Implemented Interfaces:
- ConcurrentMap<K,V>, Map<K,V>, ConcurrentMapInternals, Persistent, MapInternals
- Direct Known Subclasses:
- PersistentConcurrentOffHeapClockCache, PersistentConcurrentOffHeapHashMap
public abstract class AbstractPersistentConcurrentOffHeapMap<K,V>
- extends AbstractConcurrentOffHeapMap<K,V>
- implements Persistent
- Author:
- cdennis
| Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
| Methods inherited from class org.terracotta.offheapstore.concurrent.AbstractConcurrentOffHeapMap |
clear, containsKey, containsValue, destroy, entrySet, fill, fill, get, getAllocatedMemory, getConcurrency, getDataAllocatedMemory, getDataOccupiedMemory, getDataSize, getDataVitalMemory, getIndexFor, getOccupiedMemory, getRemovedSlotCount, getReprobeLength, getSegmentInternals, getSegments, getSize, getTableCapacity, getUsedSlotCount, getVitalMemory, handleOversizeMappingException, keySet, put, put, putIfAbsent, readLockAll, readUnlockAll, remove, remove, removeNoReturn, replace, replace, segmentFor, segmentFor, size, updateMetadata, values, writeLockAll, writeUnlockAll |
AbstractPersistentConcurrentOffHeapMap
public AbstractPersistentConcurrentOffHeapMap(Factory<? extends Segment<K,V>> segmentFactory,
boolean latencyMonitoring)
- Create a concurrent map using a default number of segments.
- Parameters:
segmentFactory - factory used to create the map segments
AbstractPersistentConcurrentOffHeapMap
public AbstractPersistentConcurrentOffHeapMap(Factory<? extends Segment<K,V>> segmentFactory,
int concurrency,
boolean latencyMonitoring)
- Create a concurrent map with a defined number of segments.
- Parameters:
segmentFactory - factory used to create the map segmentsconcurrency - number of segments in the map
- Throws:
IllegalArgumentException - if the supplied number of segments is
negative
flush
public void flush()
throws IOException
- Specified by:
flush in interface Persistent
- Throws:
IOException
persist
public void persist(ObjectOutput output)
throws IOException
- Specified by:
persist in interface Persistent
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close in interface Persistent
- Throws:
IOException
bootstrap
public void bootstrap(ObjectInput input)
throws IOException
- Specified by:
bootstrap in interface Persistent
- Throws:
IOException
readSegmentCount
protected static int readSegmentCount(ObjectInput input)
throws IOException
- Throws:
IOException
Copyright © 2015. All Rights Reserved.