| Modifier and Type | Class and Description |
|---|---|
private static class |
PersistentSetCache.Serde |
private static class |
PersistentSetCache.SetRecord |
| Modifier and Type | Field and Description |
|---|---|
private AtomicLong |
modifications |
private WriteAheadRepository<PersistentSetCache.SetRecord> |
wali |
private SetCache |
wrapped |
| Constructor and Description |
|---|
PersistentSetCache(String serviceIdentifier,
File persistencePath,
SetCache cacheToWrap) |
| Modifier and Type | Method and Description |
|---|---|
SetCacheResult |
addIfAbsent(ByteBuffer value) |
SetCacheResult |
contains(ByteBuffer value) |
SetCacheResult |
remove(ByteBuffer value) |
void |
restore() |
void |
shutdown() |
private final SetCache wrapped
private final WriteAheadRepository<PersistentSetCache.SetRecord> wali
private final AtomicLong modifications
public PersistentSetCache(String serviceIdentifier, File persistencePath, SetCache cacheToWrap) throws IOException
IOExceptionpublic void restore()
throws IOException
IOExceptionpublic SetCacheResult remove(ByteBuffer value) throws IOException
remove in interface SetCacheIOExceptionpublic SetCacheResult addIfAbsent(ByteBuffer value) throws IOException
addIfAbsent in interface SetCacheIOExceptionpublic SetCacheResult contains(ByteBuffer value) throws IOException
contains in interface SetCacheIOExceptionpublic void shutdown()
throws IOException
shutdown in interface SetCacheIOExceptionCopyright © 2015 Apache NiFi Project. All rights reserved.