public interface RollingChronicleQueue extends ChronicleQueue
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() |
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() |
Function<net.openhft.chronicle.wire.WireType,StoreRecovery> |
recoverySupplier() |
void |
release(CommonStore store) |
RollCycle |
rollCycle() |
WireStore |
storeForCycle(int cycle,
long epoch,
boolean createIfAbsent) |
acquireAppender, clear, createAppender, createTailer, dump, dump, dump, file, firstIndex, lastAcknowledgedIndexReplicated, methodWriter, methodWriterBuilder, numberOfReferences, sourceId, wireType
long epoch()
@Nullable @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 absentvoid release(CommonStore store)
store
- the store
to releaseint firstCycle()
int lastCycle()
int nextCycle(int currentCycle, @NotNull TailerDirection direction) throws ParseException
currentCycle
- the current cycledirection
- the directionParseException
long 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()
Function<net.openhft.chronicle.wire.WireType,StoreRecovery> recoverySupplier()
int deltaCheckpointInterval()
QueueLock queueLock()
Copyright © 2018. All rights reserved.