public interface WireStore extends CommonStore, Closeable
| Modifier and Type | Method and Description |
|---|---|
int |
dataVersion() |
String |
dumpHeader() |
boolean |
indexable(long index) |
void |
initIndex(net.openhft.chronicle.wire.Wire wire) |
long |
lastSequenceNumber(ExcerptContext ec) |
ScanResult |
linearScanTo(long index,
long knownIndex,
ExcerptContext ec,
long knownAddress) |
long |
moveToEndForRead(@NotNull net.openhft.chronicle.wire.Wire w) |
@Nullable ScanResult |
moveToIndexForRead(@NotNull ExcerptContext ec,
long index) |
@Nullable ScanResult |
moveToStartForRead(@NotNull ExcerptContext ec) |
long |
sequenceForPosition(ExcerptContext ec,
long position,
boolean inclusive)
Reverse look up an index for a position.
|
void |
setPositionForSequenceNumber(ExcerptContext ec,
long sequenceNumber,
long position)
Sets the position using the provided parameters.
|
boolean |
writeEOF(net.openhft.chronicle.wire.Wire wire,
long timeoutMS) |
long |
writePosition() |
@NotNull WireStore |
writePosition(long position) |
bytes, dump, file, shortDumpwriteMarshallable, writeValue@NotNull @NotNull WireStore writePosition(long position)
position - the start of the last written excerpt to this cycle/storelong writePosition()
@Nullable @Nullable ScanResult moveToIndexForRead(@NotNull @NotNull ExcerptContext ec, long index)
@Nullable @Nullable ScanResult moveToStartForRead(@NotNull @NotNull ExcerptContext ec)
long sequenceForPosition(ExcerptContext ec, long position, boolean inclusive) throws StreamCorruptedException
ec - the wire of the bytes, to work withposition - of the start of the messagenet.openhft.chronicle.wire.UnrecoverableTimeoutException - if the operation times outStreamCorruptedExceptionlong lastSequenceNumber(ExcerptContext ec) throws StreamCorruptedException
StreamCorruptedExceptionvoid setPositionForSequenceNumber(ExcerptContext ec, long sequenceNumber, long position) throws StreamCorruptedException
ec - the wire of the bytes, to work withsequenceNumber - to use when setting positionposition - of the start of the messagenet.openhft.chronicle.wire.UnrecoverableTimeoutException - if the operation times outStreamCorruptedException - if the stream is corruptedboolean writeEOF(net.openhft.chronicle.wire.Wire wire,
long timeoutMS)
boolean indexable(long index)
ScanResult linearScanTo(long index, long knownIndex, ExcerptContext ec, long knownAddress)
long moveToEndForRead(@NotNull
@NotNull net.openhft.chronicle.wire.Wire w)
void initIndex(net.openhft.chronicle.wire.Wire wire)
String dumpHeader()
int dataVersion()
Copyright © 2022. All rights reserved.