public interface WireStore extends CommonStore
Modifier and Type | Method and Description |
---|---|
int |
deltaCheckpointInterval() |
long |
epoch() |
boolean |
indexable(long index) |
long |
lastAcknowledgedIndexReplicated() |
void |
lastAcknowledgedIndexReplicated(long lastAcknowledgedIndexReplicated) |
long |
lastIndexReplicated()
when using replication to another host, this is the last index that has been sent to the remote host.
|
void |
lastIndexReplicated(long lastIndex) |
long |
lastSequenceNumber(ExcerptContext ec) |
ScanResult |
linearScanTo(long index,
long knownIndex,
ExcerptContext ec,
long knownAddress) |
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) |
int |
sourceId() |
void |
writeEOF(net.openhft.chronicle.wire.Wire wire,
long timeoutMS) |
long |
writePosition() |
WireStore |
writePosition(long position) |
bytes, dump, file, tryWriteHeader, wireType, writeHeader
refCount, release, release, releaseAll, reserve, tryReserve
@NotNull WireStore writePosition(long position)
position
- the start of the last written excerpt to this cycle/storelong epoch()
long lastIndexReplicated()
void lastIndexReplicated(long lastIndex)
lastIndex
- last index that has been sent to the remote host.long writePosition()
@Nullable ScanResult moveToIndexForRead(@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.UnrecoverableTimeoutException
StreamCorruptedException
long lastSequenceNumber(ExcerptContext ec) throws StreamCorruptedException
StreamCorruptedException
void lastAcknowledgedIndexReplicated(long lastAcknowledgedIndexReplicated)
int sourceId()
long lastAcknowledgedIndexReplicated()
void setPositionForSequenceNumber(ExcerptContext ec, long sequenceNumber, long position) throws net.openhft.chronicle.wire.UnrecoverableTimeoutException, StreamCorruptedException
net.openhft.chronicle.wire.UnrecoverableTimeoutException
StreamCorruptedException
void writeEOF(net.openhft.chronicle.wire.Wire wire, long timeoutMS)
int deltaCheckpointInterval()
boolean indexable(long index)
ScanResult linearScanTo(long index, long knownIndex, ExcerptContext ec, long knownAddress)
Copyright © 2018. All rights reserved.