public class VanillaIndexCache extends Object implements Closeable
Modifier and Type | Field and Description |
---|---|
static String |
FILE_NAME_PREFIX |
Modifier and Type | Method and Description |
---|---|
net.openhft.lang.io.VanillaMappedBytes |
append(int cycle,
long indexValue,
boolean synchronous,
int lastIndex,
long[] position) |
static long |
append(net.openhft.lang.io.VanillaMappedBytes bytes,
long indexValue,
boolean synchronous) |
void |
checkCounts(int min,
int max) |
void |
close() |
static long |
countIndices(net.openhft.lang.io.VanillaMappedBytes buffer) |
long |
firstCycle() |
net.openhft.lang.io.VanillaMappedBytes |
indexFor(int cycle,
int indexCount,
boolean forAppend) |
long |
lastCycle() |
public static final String FILE_NAME_PREFIX
public static long append(net.openhft.lang.io.VanillaMappedBytes bytes, long indexValue, boolean synchronous)
public static long countIndices(net.openhft.lang.io.VanillaMappedBytes buffer)
public net.openhft.lang.io.VanillaMappedBytes indexFor(int cycle, int indexCount, boolean forAppend) throws IOException
IOException
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public net.openhft.lang.io.VanillaMappedBytes append(int cycle, long indexValue, boolean synchronous, int lastIndex, long[] position) throws IOException
IOException
public long firstCycle()
public long lastCycle()
public void checkCounts(int min, int max)
Copyright © 2017. All rights reserved.