public interface MessageHistory extends Marshallable
MessageHistory interface, which extends Marshallable.
It provides functionalities related to managing the history of messages.EMPTYDISCARD| Modifier and Type | Method and Description |
|---|---|
static void |
clear()
Clears the
MessageHistory for the current thread. |
default void |
doWriteHistory(DocumentContext dc) |
static void |
emptyHistory()
Sets an empty history the
MessageHistory for the current thread. |
static MessageHistory |
get()
Returns the
MessageHistory to update it or read it. |
boolean |
isDirty() |
int |
lastSourceId()
Returns the last source id contained in this
MessageHistory. |
long |
lastSourceIndex()
Returns the last source index contained in this
MessageHistory. |
void |
reset()
Clears all data contained in this
MessageHistory |
void |
reset(int sourceId,
long sourceIndex)
Resets the
MessageHistory with the provided sourceId
and sourceIndex as a starting point. |
static void |
set(MessageHistory md)
You only need to call this if you wish to override its behaviour.
|
int |
sourceId(int n)
Returns the source id at a position specified by the input
n. |
boolean |
sourceIdsEndsWith(int[] sourceIds)
Returns
true if the source ids contained in this
MessageHistory end with the provided sourceIds. |
long |
sourceIndex(int n)
Returns the index of the source at a position specified by the
input
n. |
int |
sources()
Returns the number of sources contained in this
MessageHistory. |
long |
timing(int n)
Returns a timing at a position specified by the input
n. |
int |
timings()
Returns the number of timings contained in this
MessageHistory. |
static void |
writeHistory(DocumentContext dc) |
$equals, $fieldInfoMap, $fieldInfos, $hashCode, $toString, className, copyTo, deepCopy, fromFile, fromFile, fromString, fromString, fromString, getField, getLongField, mergeToMap, readMarshallable, setField, setLongField, streamFromFile, streamFromFile, writeMarshallablebinaryLengthLength, writeValueunexpectedFieldstatic MessageHistory get()
MessageHistory to update it or read it.static void set(MessageHistory md)
md - to change to the default implementation for this thread. Null to clear the thread local
and force withInitial to be called againstatic void clear()
MessageHistory for the current thread.static void emptyHistory()
MessageHistory for the current thread.@UsedViaReflection static void writeHistory(DocumentContext dc)
default void doWriteHistory(DocumentContext dc)
int timings()
MessageHistory.MessageHistory.long timing(int n)
n.n.int sources()
MessageHistory.MessageHistory.int sourceId(int n)
n.n.boolean sourceIdsEndsWith(int[] sourceIds)
true if the source ids contained in this
MessageHistory end with the provided sourceIds.true if the source ids contained in this
MessageHistory end with the provided sourceIds.long sourceIndex(int n)
n.n.void reset()
MessageHistoryreset in interface Marshallablereset in interface net.openhft.chronicle.core.io.Resettablevoid reset(int sourceId,
long sourceIndex)
MessageHistory with the provided sourceId
and sourceIndex as a starting point.int lastSourceId()
MessageHistory.MessageHistory.long lastSourceIndex()
MessageHistory.MessageHistory.boolean isDirty()
true if the message history has not been written using
Marshallable.writeMarshallable(net.openhft.chronicle.wire.WireOut)Copyright © 2024. All rights reserved.