public class VanillaMessageHistory extends AbstractMarshallable implements MessageHistory
Modifier and Type | Field and Description |
---|---|
static int |
MESSAGE_HISTORY_LENGTH |
EMPTY
DISCARD
Constructor and Description |
---|
VanillaMessageHistory() |
Modifier and Type | Method and Description |
---|---|
void |
addSource(int id,
long index) |
void |
addSourceDetails(boolean addSourceDetails) |
void |
addTiming(long l) |
int |
lastSourceId() |
long |
lastSourceIndex() |
void |
readMarshallable(net.openhft.chronicle.bytes.BytesIn bytes) |
void |
readMarshallable(WireIn wire)
Straight line ordered decoding.
|
void |
reset()
clear all data
|
void |
reset(int sourceId,
long sourceIndex)
reset for a given source prior to reading a new message in
|
int |
sourceId(int n) |
long |
sourceIndex(int n) |
int |
sources() |
long |
timing(int n) |
int |
timings() |
void |
writeMarshallable(net.openhft.chronicle.bytes.BytesOut bytes) |
void |
writeMarshallable(WireOut wire)
Write data to the wire
|
equals, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
get, set
$equals, $fieldInfos, $hashCode, $toString, copyFrom, copyTo, deepCopy, fromFile, fromFile, fromFileAsMap, fromFileAsMap, fromHexString, fromString, fromString, getClassName, getField, mergeToMap, setField, streamFromFile, streamFromFile
writeValue
unexpectedField
public static final int MESSAGE_HISTORY_LENGTH
public void addSourceDetails(boolean addSourceDetails)
public void reset()
MessageHistory
reset
in interface net.openhft.chronicle.core.io.Resettable
reset
in interface Marshallable
reset
in interface MessageHistory
public void reset(int sourceId, long sourceIndex)
MessageHistory
reset
in interface MessageHistory
public int lastSourceId()
lastSourceId
in interface MessageHistory
public long lastSourceIndex()
lastSourceIndex
in interface MessageHistory
public int timings()
timings
in interface MessageHistory
public long timing(int n)
timing
in interface MessageHistory
public int sources()
sources
in interface MessageHistory
public int sourceId(int n)
sourceId
in interface MessageHistory
public long sourceIndex(int n)
sourceIndex
in interface MessageHistory
public void readMarshallable(@NotNull WireIn wire) throws net.openhft.chronicle.core.io.IORuntimeException
ReadMarshallable
readMarshallable
in interface Marshallable
readMarshallable
in interface ReadMarshallable
wire
- to read from in an ordered manner.net.openhft.chronicle.core.io.IORuntimeException
- the stream wasn't ordered or formatted as expected.public void writeMarshallable(@NotNull WireOut wire)
WriteMarshallable
writeMarshallable
in interface Marshallable
writeMarshallable
in interface WriteMarshallable
wire
- to write to.public void readMarshallable(@NotNull net.openhft.chronicle.bytes.BytesIn bytes) throws net.openhft.chronicle.core.io.IORuntimeException
readMarshallable
in interface net.openhft.chronicle.bytes.BytesMarshallable
readMarshallable
in interface net.openhft.chronicle.bytes.ReadBytesMarshallable
net.openhft.chronicle.core.io.IORuntimeException
public void writeMarshallable(@NotNull net.openhft.chronicle.bytes.BytesOut bytes)
writeMarshallable
in interface net.openhft.chronicle.bytes.BytesMarshallable
writeMarshallable
in interface net.openhft.chronicle.bytes.WriteBytesMarshallable
public void addSource(int id, long index)
public void addTiming(long l)
Copyright © 2018. All rights reserved.