public class VanillaMessageHistory extends AbstractMarshallable implements MessageHistory
| Modifier and Type | Field and Description |
|---|---|
static int |
MESSAGE_HISTORY_LENGTH |
EMPTYDISCARD| Constructor and Description |
|---|
VanillaMessageHistory() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSource(int id,
long index) |
boolean |
addSourceDetails() |
void |
addSourceDetails(boolean addSourceDetails) |
void |
addTiming(long l) |
int |
lastSourceId() |
long |
lastSourceIndex() |
static int |
marshallableSize(net.openhft.chronicle.bytes.BytesIn bytes) |
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() |
String |
toString()
We need a custom toString as the base class toString calls writeMarshallable which does not mutate this,
but will display a different result every time you toString the object as it outputs System.nanoTime
|
void |
writeMarshallable(net.openhft.chronicle.bytes.BytesOut bytes) |
void |
writeMarshallable(WireOut wire)
Write data to the wire
|
equals, hashCodeclone, finalize, getClass, notify, notifyAll, wait, wait, waitget, set$equals, $fieldInfos, $hashCode, $toString, copyFrom, copyTo, deepCopy, fromFile, fromFile, fromFileAsMap, fromFileAsMap, fromHexString, fromString, fromString, fromString, getClassName, getField, mergeToMap, setField, streamFromFile, streamFromFilewriteValueunexpectedFieldpublic static final int MESSAGE_HISTORY_LENGTH
public static int marshallableSize(@NotNull
net.openhft.chronicle.bytes.BytesIn bytes)
public void addSourceDetails(boolean addSourceDetails)
public void reset()
MessageHistoryreset in interface net.openhft.chronicle.core.io.Resettablereset in interface Marshallablereset in interface MessageHistorypublic boolean addSourceDetails()
public void reset(int sourceId,
long sourceIndex)
MessageHistoryreset in interface MessageHistorypublic int lastSourceId()
lastSourceId in interface MessageHistorypublic long lastSourceIndex()
lastSourceIndex in interface MessageHistorypublic int timings()
timings in interface MessageHistorypublic long timing(int n)
timing in interface MessageHistorypublic int sources()
sources in interface MessageHistorypublic int sourceId(int n)
sourceId in interface MessageHistorypublic long sourceIndex(int n)
sourceIndex in interface MessageHistorypublic void readMarshallable(@NotNull
WireIn wire)
throws net.openhft.chronicle.core.io.IORuntimeException
ReadMarshallablereadMarshallable in interface MarshallablereadMarshallable in interface ReadMarshallablewire - 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)
WriteMarshallablewriteMarshallable in interface MarshallablewriteMarshallable in interface WriteMarshallablewire - 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.BytesMarshallablereadMarshallable in interface net.openhft.chronicle.bytes.ReadBytesMarshallablenet.openhft.chronicle.core.io.IORuntimeExceptionpublic void writeMarshallable(@NotNull
net.openhft.chronicle.bytes.BytesOut bytes)
writeMarshallable in interface net.openhft.chronicle.bytes.BytesMarshallablewriteMarshallable in interface net.openhft.chronicle.bytes.WriteBytesMarshallablepublic void addSource(int id,
long index)
public void addTiming(long l)
public String toString()
toString in class AbstractMarshallableCopyright © 2019. All rights reserved.