public interface WireStore
extends net.openhft.chronicle.core.ReferenceCounted, net.openhft.chronicle.wire.Demarshallable, net.openhft.chronicle.wire.WriteMarshallable, net.openhft.chronicle.core.io.Closeable
Modifier and Type | Method and Description |
---|---|
net.openhft.chronicle.bytes.MappedBytes |
bytes() |
int |
deltaCheckpointInterval() |
String |
dump() |
long |
epoch() |
File |
file() |
boolean |
indexable(long index) |
long |
lastAcknowledgedIndexReplicated() |
void |
lastAcknowledgedIndexReplicated(long lastAcknowledgedIndexReplicated) |
long |
lastSequenceNumber(ExcerptContext ec) |
ScanResult |
moveToIndexForRead(ExcerptContext ec,
long index) |
long |
sequenceForPosition(ExcerptContext ec,
long position,
boolean inclusive)
Reverse look up an index for a position.
|
void |
setPositionForSequenceNumber(ExcerptContext ec,
long sequenceNumber,
long position) |
net.openhft.chronicle.wire.WireType |
wireType() |
void |
writeEOF(net.openhft.chronicle.wire.Wire wire,
long timeoutMS) |
long |
writeHeader(net.openhft.chronicle.wire.Wire wire,
int length,
long timeoutMS) |
long |
writePosition() |
WireStore |
writePosition(long position) |
refCount, release, release, releaseAll, reserve, tryReserve
File file()
WireStore writePosition(long position)
position
- the start of the last written excerpt to this cycle/storelong epoch()
long writePosition()
ScanResult moveToIndexForRead(@NotNull ExcerptContext ec, long index)
@NotNull net.openhft.chronicle.bytes.MappedBytes bytes()
long sequenceForPosition(ExcerptContext ec, long position, boolean inclusive) throws net.openhft.chronicle.wire.UnrecoverableTimeoutException, StreamCorruptedException
ec
- the wire of the bytes, to work withposition
- of the start of the messagenet.openhft.chronicle.wire.UnrecoverableTimeoutException
StreamCorruptedException
long lastSequenceNumber(ExcerptContext ec) throws StreamCorruptedException
StreamCorruptedException
String dump()
void lastAcknowledgedIndexReplicated(long lastAcknowledgedIndexReplicated)
long lastAcknowledgedIndexReplicated()
void setPositionForSequenceNumber(ExcerptContext ec, long sequenceNumber, long position) throws net.openhft.chronicle.wire.UnrecoverableTimeoutException, StreamCorruptedException
net.openhft.chronicle.wire.UnrecoverableTimeoutException
StreamCorruptedException
long writeHeader(net.openhft.chronicle.wire.Wire wire, int length, long timeoutMS) throws EOFException, net.openhft.chronicle.wire.UnrecoverableTimeoutException
EOFException
net.openhft.chronicle.wire.UnrecoverableTimeoutException
void writeEOF(net.openhft.chronicle.wire.Wire wire, long timeoutMS) throws TimeoutException
TimeoutException
int deltaCheckpointInterval()
net.openhft.chronicle.wire.WireType wireType()
boolean indexable(long index)
Copyright © 2017. All rights reserved.