public interface RollingChronicleQueue extends ChronicleQueue, StoreReleasable
TEST_BLOCK_SIZE| Modifier and Type | Method and Description |
|---|---|
long |
countExcerpts(long fromIndex,
long toIndex)
The number of excerpts between the indexes,
fromIndex inclusive, toIndex
exclusive. |
int |
cycle() |
int |
deltaCheckpointInterval()
Returns the Delta Checkpoint Interval for this ChronicleQueue.
|
long |
entryCount()
Counts the number of messages in this queue instance.
|
long |
epoch() |
int |
firstCycle() |
int |
indexCount() |
int |
indexSpacing() |
int |
lastCycle() |
int |
nextCycle(int currentCycle,
TailerDirection direction)
the next available cycle, no cycle will be created by this method, this method is typically
used by a tailer to jump to the next cycle when the cycles are not adjacent.
|
QueueLock |
queueLock() |
RollCycle |
rollCycle()
Returns the
RollCycle for this ChronicleQueue. |
WireStore |
storeForCycle(int cycle,
long epoch,
boolean createIfAbsent) |
acquireAppender, clear, createAppender, createTailer, createTailer, dump, dump, dump, dumpLastHeader, file, fileAbsolutePath, firstIndex, lastAcknowledgedIndexReplicated, lastAcknowledgedIndexReplicated, lastIndexReplicated, lastIndexReplicated, methodWriter, methodWriterBuilder, refreshDirectlyListing, single, singleBuilder, singleBuilder, singleBuilder, singleBuilder, sourceId, time, wireTypeclose, closeQuietly, closeQuietly, isClosed, notifyClosingreleaselong epoch()
@Nullable WireStore storeForCycle(int cycle, long epoch, boolean createIfAbsent)
cycle - the cycleepoch - an epoch offset as the number of number of milliseconds since January
1, 1970, 00:00:00 GMTcreateIfAbsent - create missing stores if true, or return null if missingWireStore associated with this cycle, or null if !createIfAbsent
is false and absentint firstCycle()
int lastCycle()
long entryCount()
int nextCycle(int currentCycle,
@NotNull
TailerDirection direction)
throws ParseException
currentCycle - the current cycledirection - the directionParseExceptionlong countExcerpts(long fromIndex,
long toIndex)
throws IllegalStateException
fromIndex inclusive, toIndex
exclusive.
When fromIndex and toIndex are in different cycles which are not adjacent, this
operation can be expensive, as the index count for each intermediate cycle has to be found
and calculated. As such, and in this situation, it's not recommended to call this method
regularly in latency sensitive systems.
fromIndex - from index, the index provided must exist. To improve performance no checking
is carried out to validate if an excerpt exists at this index. ( inclusive )toIndex - to index, the index provided must exist. To improve performance no checking is
carried out to validate if an excerpt exists at this index. ( exclusive )index1 inclusive, index2
exclusive.IllegalStateException - if the cycle of fromIndex or toIndex can
not be ascertainedint cycle()
int indexCount()
int indexSpacing()
@NotNull RollCycle rollCycle()
ChronicleQueueRollCycle for this ChronicleQueue.rollCycle in interface ChronicleQueueRollCycle for this ChronicleQueueRollCycleint deltaCheckpointInterval()
ChronicleQueueThe value returned is always a power of two.
deltaCheckpointInterval in interface ChronicleQueueQueueLock queueLock()
Copyright © 2019. All rights reserved.