public interface WireStore
extends net.openhft.chronicle.core.ReferenceCounted, net.openhft.chronicle.wire.Demarshallable, net.openhft.chronicle.wire.WriteMarshallable
Modifier and Type | Method and Description |
---|---|
net.openhft.chronicle.bytes.MappedBytes |
bytes() |
String |
dump() |
long |
epoch() |
long |
indexForPosition(net.openhft.chronicle.wire.Wire wire,
long position,
long timeoutMS)
Reverse look up an index for a position.
|
long |
lastAcknowledgedIndexReplicated() |
void |
lastAcknowledgedIndexReplicated(long lastAcknowledgedIndexReplicated) |
ScanResult |
moveToIndexForRead(net.openhft.chronicle.wire.Wire wire,
long index,
long timeoutMS) |
void |
setPositionForIndex(net.openhft.chronicle.wire.Wire wire,
long index,
long position,
long timeoutMS) |
void |
writeEOF(net.openhft.chronicle.wire.AbstractWire wire,
long timeoutMS) |
long |
writeHeader(net.openhft.chronicle.wire.Wire wire,
int length,
long timeoutMS) |
long |
writePosition() |
WireStore |
writePosition(long position) |
close, refCount, release, release, releaseAll, reserve, tryReserve
WireStore writePosition(long position)
long epoch()
long writePosition()
ScanResult moveToIndexForRead(@NotNull net.openhft.chronicle.wire.Wire wire, long index, long timeoutMS)
@NotNull net.openhft.chronicle.bytes.MappedBytes bytes()
long indexForPosition(net.openhft.chronicle.wire.Wire wire, long position, long timeoutMS) throws EOFException, net.openhft.chronicle.wire.UnrecoverableTimeoutException, StreamCorruptedException
position
- of the start of the messagetimeoutMS
- EOFException
net.openhft.chronicle.wire.UnrecoverableTimeoutException
StreamCorruptedException
String dump()
void lastAcknowledgedIndexReplicated(long lastAcknowledgedIndexReplicated)
long lastAcknowledgedIndexReplicated()
void setPositionForIndex(net.openhft.chronicle.wire.Wire wire, long index, long position, long timeoutMS) 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.AbstractWire wire, long timeoutMS) throws net.openhft.chronicle.wire.UnrecoverableTimeoutException
net.openhft.chronicle.wire.UnrecoverableTimeoutException
Copyright © 2016. All rights reserved.