public interface WireStore extends CommonStore
| Modifier and Type | Method and Description |
|---|---|
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) |
long |
sequenceForPosition(ExcerptContext ec,
long position,
boolean inclusive)
Reverse look up an index for a position.
|
void |
setPositionForSequenceNumber(ExcerptContext ec,
long sequenceNumber,
long position) |
boolean |
writeEOF(net.openhft.chronicle.wire.Wire wire,
long timeoutMS) |
long |
writePosition() |
@NotNull WireStore |
writePosition(long position) |
bytes, dump, file, shortDumprefCount, release, release, releaseAll, reserve, tryReserve@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)
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.UnrecoverableTimeoutExceptionStreamCorruptedExceptionlong lastSequenceNumber(ExcerptContext ec) throws StreamCorruptedException
StreamCorruptedExceptionvoid setPositionForSequenceNumber(ExcerptContext ec, long sequenceNumber, long position) throws net.openhft.chronicle.wire.UnrecoverableTimeoutException, StreamCorruptedException
net.openhft.chronicle.wire.UnrecoverableTimeoutExceptionStreamCorruptedExceptionboolean 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()
Copyright © 2020. All rights reserved.