public class VanillaChronicle extends Object implements Chronicle
| Modifier and Type | Class and Description |
|---|---|
static class |
VanillaChronicle.Cycle |
static interface |
VanillaChronicle.VanillaAppender |
static interface |
VanillaChronicle.VanillaExcerptCommon |
static interface |
VanillaChronicle.VanillaTailer |
| Modifier and Type | Field and Description |
|---|---|
static int |
INDEX_DATA_OFFSET_BITS
Number of least-significant bits used to hold the data offset info in index entries.
|
static long |
INDEX_DATA_OFFSET_MASK
Mask used to extract the data offset info from an index entry.
|
static long |
MIN_CYCLE_LENGTH |
static int |
THREAD_ID_BITS
Number of most-significant bits used to hold the thread id in index entries.
|
static long |
THREAD_ID_MASK
Mask used to validate that the thread id does not exceed the allocated number of bits.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkCounts(int min,
int max) |
void |
clear() |
void |
close() |
VanillaChronicle.VanillaAppender |
createAppender() |
Excerpt |
createExcerpt() |
ExcerptTailer |
createTailer() |
int |
getEntriesForCycleBits() |
boolean |
isClosed() |
long |
lastIndex()
This method returns the very last index in the chronicle.
|
long |
lastWrittenIndex() |
String |
name() |
long |
size() |
public static final long MIN_CYCLE_LENGTH
public static final int THREAD_ID_BITS
public static final long THREAD_ID_MASK
public static final int INDEX_DATA_OFFSET_BITS
public static final long INDEX_DATA_OFFSET_MASK
public int getEntriesForCycleBits()
@NotNull public ExcerptTailer createTailer() throws IOException
createTailer in interface ChronicleIOException@NotNull public VanillaChronicle.VanillaAppender createAppender() throws IOException
createAppender in interface ChronicleIOException@NotNull public Excerpt createExcerpt() throws IOException
createExcerpt in interface ChronicleIOExceptionpublic long lastWrittenIndex()
lastWrittenIndex in interface Chroniclepublic long lastIndex()
public void close()
close in interface Closeableclose in interface AutoCloseablepublic void checkCounts(int min,
int max)
Copyright © 2021. All rights reserved.