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() |
void |
install(long length,
boolean created,
long cycle,
ChronicleQueueBuilder builder) |
net.openhft.chronicle.bytes.MappedBytes |
mappedBytes() |
long |
moveToIndex(net.openhft.chronicle.wire.Wire wire,
long index)
Moves the position to the index
|
void |
readMarshallable(net.openhft.chronicle.wire.WireIn wire) |
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() |
void |
writePosition(long position) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, release, releaseAll, tryReserve
public static final net.openhft.chronicle.wire.WriteMarshallable INDEX_TEMPLATE
public long writePosition()
writePosition
in interface WireStore
public void writePosition(long position)
writePosition
in interface WireStore
public long cycle()
public long epoch()
public long firstSequenceNumber()
firstSequenceNumber
in interface WireStore
public long sequenceNumber()
sequenceNumber
in interface WireStore
public boolean appendRollMeta(@NotNull net.openhft.chronicle.wire.Wire wire, long cycle)
appendRollMeta
in interface WireStore
public long moveToIndex(@NotNull net.openhft.chronicle.wire.Wire wire, long index)
moveToIndex
in interface WireStore
wire
- 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.ReferenceCounted
IllegalStateException
public void release() throws IllegalStateException
release
in interface net.openhft.chronicle.core.ReferenceCounted
IllegalStateException
public long refCount()
refCount
in interface net.openhft.chronicle.core.ReferenceCounted
public void install(long length, boolean created, long cycle, @NotNull ChronicleQueueBuilder builder)
@NotNull public net.openhft.chronicle.bytes.MappedBytes mappedBytes()
mappedBytes
in interface WireStore
public void storeIndexLocation(@NotNull net.openhft.chronicle.wire.Wire wire, long position, long sequenceNumber)
storeIndexLocation
in interface WireStore
public void writeMarshallable(@NotNull net.openhft.chronicle.wire.WireOut wire)
writeMarshallable
in interface net.openhft.chronicle.wire.WriteMarshallable
public void readMarshallable(@NotNull net.openhft.chronicle.wire.WireIn wire) throws net.openhft.chronicle.core.io.IORuntimeException
readMarshallable
in interface net.openhft.chronicle.wire.ReadMarshallable
net.openhft.chronicle.core.io.IORuntimeException
Copyright © 2016. All rights reserved.