Modifier and Type | Method and Description |
---|---|
net.openhft.chronicle.bytes.MappedBytes |
bytes() |
void |
close() |
String |
dump() |
static String |
dump(String directoryFilePath) |
static void |
dumpStore(net.openhft.chronicle.wire.Wire wire) |
long |
epoch() |
File |
file() |
long |
lastAcknowledgedIndexReplicated()
when using replication to another host, this is the last index that has been confirmed to *
have been read by the remote host.
|
void |
lastAcknowledgedIndexReplicated(long newValue) |
ScanResult |
moveToIndexForRead(ExcerptContext ec,
long index)
Moves the position to the index
|
long |
refCount() |
void |
release() |
void |
reserve() |
long |
sequenceForPosition(ExcerptContext ec,
long position,
boolean inclusive)
Reverse look up an index for a position.
|
void |
setPositionForSequenceNumber(ExcerptContext ec,
long sequenceNumber,
long position) |
String |
toString() |
void |
writeEOF(net.openhft.chronicle.wire.Wire wire,
long timeoutMS) |
long |
writeHeader(net.openhft.chronicle.wire.Wire wire,
int length,
long timeoutMS) |
void |
writeMarshallable(net.openhft.chronicle.wire.WireOut wire) |
long |
writePosition() |
WireStore |
writePosition(long position) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static void dumpStore(net.openhft.chronicle.wire.Wire wire)
public File file()
public long lastAcknowledgedIndexReplicated()
lastAcknowledgedIndexReplicated
in interface WireStore
public void lastAcknowledgedIndexReplicated(long newValue)
lastAcknowledgedIndexReplicated
in interface WireStore
public long writePosition()
writePosition
in interface WireStore
public WireStore writePosition(long position)
writePosition
in interface WireStore
position
- the start of the last written excerpt to this cycle/storepublic long epoch()
public ScanResult moveToIndexForRead(@NotNull ExcerptContext ec, long index)
moveToIndexForRead
in interface WireStore
ec
- the data structure we are navigatingindex
- the index we wish to move topublic void reserve() throws IllegalStateException
reserve
in interface net.openhft.chronicle.core.ReferenceCounted
IllegalStateException
public void release() throws IllegalStateException
release
in interface net.openhft.chronicle.core.ReferenceCounted
IllegalStateException
public long refCount()
refCount
in interface net.openhft.chronicle.core.ReferenceCounted
public void close()
@NotNull public net.openhft.chronicle.bytes.MappedBytes bytes()
public long sequenceForPosition(ExcerptContext ec, long position, boolean inclusive) throws EOFException, net.openhft.chronicle.wire.UnrecoverableTimeoutException, StreamCorruptedException
WireStore
sequenceForPosition
in interface WireStore
ec
- the wire of the bytes, to work withposition
- of the start of the messageEOFException
net.openhft.chronicle.wire.UnrecoverableTimeoutException
StreamCorruptedException
public void writeMarshallable(@NotNull net.openhft.chronicle.wire.WireOut wire)
writeMarshallable
in interface net.openhft.chronicle.wire.WriteMarshallable
public void setPositionForSequenceNumber(ExcerptContext ec, long sequenceNumber, long position) throws net.openhft.chronicle.wire.UnrecoverableTimeoutException, StreamCorruptedException
setPositionForSequenceNumber
in interface WireStore
net.openhft.chronicle.wire.UnrecoverableTimeoutException
StreamCorruptedException
public long writeHeader(net.openhft.chronicle.wire.Wire wire, int length, long timeoutMS) throws EOFException, net.openhft.chronicle.wire.UnrecoverableTimeoutException
writeHeader
in interface WireStore
EOFException
net.openhft.chronicle.wire.UnrecoverableTimeoutException
Copyright © 2016. All rights reserved.