| Modifier and Type | Class and Description |
|---|---|
private static class |
PersistentMapCache.MapWaliRecord |
private static class |
PersistentMapCache.Serde |
| Modifier and Type | Field and Description |
|---|---|
private AtomicLong |
modifications |
private WriteAheadRepository<PersistentMapCache.MapWaliRecord> |
wali |
private MapCache |
wrapped |
| Constructor and Description |
|---|
PersistentMapCache(String serviceIdentifier,
File persistencePath,
MapCache cacheToWrap) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(ByteBuffer key) |
ByteBuffer |
get(ByteBuffer key) |
MapPutResult |
put(ByteBuffer key,
ByteBuffer value) |
MapPutResult |
putIfAbsent(ByteBuffer key,
ByteBuffer value) |
ByteBuffer |
remove(ByteBuffer key) |
(package private) void |
restore() |
void |
shutdown() |
private final MapCache wrapped
private final WriteAheadRepository<PersistentMapCache.MapWaliRecord> wali
private final AtomicLong modifications
public PersistentMapCache(String serviceIdentifier, File persistencePath, MapCache cacheToWrap) throws IOException
IOExceptionvoid restore()
throws IOException
IOExceptionpublic MapPutResult putIfAbsent(ByteBuffer key, ByteBuffer value) throws IOException
putIfAbsent in interface MapCacheIOExceptionpublic MapPutResult put(ByteBuffer key, ByteBuffer value) throws IOException
put in interface MapCacheIOExceptionpublic boolean containsKey(ByteBuffer key) throws IOException
containsKey in interface MapCacheIOExceptionpublic ByteBuffer get(ByteBuffer key) throws IOException
get in interface MapCacheIOExceptionpublic ByteBuffer remove(ByteBuffer key) throws IOException
remove in interface MapCacheIOExceptionpublic void shutdown()
throws IOException
shutdown in interface MapCacheIOExceptionCopyright © 2015 Apache NiFi Project. All rights reserved.