public class SingleChronicleQueueStore extends Object implements WireStore
| Modifier and Type | Class and Description |
|---|---|
static class |
SingleChronicleQueueStore.IndexOffset |
| Modifier and Type | Field and Description |
|---|---|
static net.openhft.chronicle.wire.WriteMarshallable |
INDEX_TEMPLATE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
appendRollMeta(net.openhft.chronicle.wire.Wire wire,
long cycle) |
long |
cycle() |
long |
epoch() |
long |
firstSequenceNumber() |
net.openhft.chronicle.bytes.MappedBytes |
mappedBytes() |
long |
moveToIndex(net.openhft.chronicle.wire.Wire wire,
long index)
Moves the position to the index
|
long |
refCount() |
void |
release() |
void |
reserve() |
long |
sequenceNumber() |
void |
storeIndexLocation(net.openhft.chronicle.wire.Wire wire,
long position,
long sequenceNumber) |
void |
writeMarshallable(net.openhft.chronicle.wire.WireOut wire) |
long |
writePosition() |
WireStore |
writePosition(long position) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, release, releaseAll, tryReservepublic static final net.openhft.chronicle.wire.WriteMarshallable INDEX_TEMPLATE
public long writePosition()
writePosition in interface WireStorepublic WireStore writePosition(long position)
writePosition in interface WireStorepublic long cycle()
public long epoch()
public long firstSequenceNumber()
firstSequenceNumber in interface WireStorepublic long sequenceNumber()
sequenceNumber in interface WireStorepublic boolean appendRollMeta(@NotNull
net.openhft.chronicle.wire.Wire wire,
long cycle)
appendRollMeta in interface WireStorepublic long moveToIndex(@NotNull
net.openhft.chronicle.wire.Wire wire,
long index)
moveToIndex in interface WireStorewire - the data structure we are navigatingindex - the index we wish to move totargetIndex or -1 if the index can not be foundpublic void reserve()
throws IllegalStateException
reserve in interface net.openhft.chronicle.core.ReferenceCountedIllegalStateExceptionpublic void release()
throws IllegalStateException
release in interface net.openhft.chronicle.core.ReferenceCountedIllegalStateExceptionpublic long refCount()
refCount in interface net.openhft.chronicle.core.ReferenceCounted@NotNull public net.openhft.chronicle.bytes.MappedBytes mappedBytes()
mappedBytes in interface WireStorepublic void storeIndexLocation(@NotNull
net.openhft.chronicle.wire.Wire wire,
long position,
long sequenceNumber)
storeIndexLocation in interface WireStorepublic void writeMarshallable(@NotNull
net.openhft.chronicle.wire.WireOut wire)
writeMarshallable in interface net.openhft.chronicle.wire.WriteMarshallableCopyright © 2016. All rights reserved.