public abstract class AbstractMarshallableCfg extends SelfDescribingMarshallable
WireMarshaller.
Derived configuration DTOs can benefit from merging default configurations with specific configurations to enhance flexibility.EMPTYDISCARD| Constructor and Description |
|---|
AbstractMarshallableCfg() |
| Modifier and Type | Method and Description |
|---|---|
void |
readMarshallable(@NotNull WireIn wire)
Reads the state of this configuration object from the given wire input.
|
void |
unexpectedField(Object event,
ValueIn valueIn)
Handles the presence of unexpected fields during the reading process.
|
void |
writeMarshallable(@NotNull WireOut wire)
Writes the state of this configuration object to the given wire output.
|
usesSelfDescribingMessageequals, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, wait$equals, $fieldInfoMap, $fieldInfos, $hashCode, $toString, className, copyTo, deepCopy, fromFile, fromFile, fromString, fromString, fromString, getField, getLongField, mergeToMap, reset, setField, setLongField, streamFromFile, streamFromFilebinaryLengthLength, writeValuepublic void readMarshallable(@NotNull
@NotNull WireIn wire)
throws net.openhft.chronicle.core.io.IORuntimeException,
net.openhft.chronicle.core.io.InvalidMarshallableException
WireMarshaller corresponding to the class of the current object
to perform the reading.
Configuration merging is supported; absent values in the wire input retain their
existing state. To ensure the use of default values for any unset attributes,
consider invoking reset() before this method.
wire - Wire input source for reading the configuration.net.openhft.chronicle.core.io.IORuntimeException - If there's an IO-related exception during reading.net.openhft.chronicle.core.io.InvalidMarshallableException - If a marshalling error occurs.public void writeMarshallable(@NotNull
@NotNull WireOut wire)
throws net.openhft.chronicle.core.io.InvalidMarshallableException
WireMarshaller corresponding to the class of the current object
to perform the writing.
For brevity, only fields differing from default values are written.
wire - Wire output target for writing the configuration.net.openhft.chronicle.core.io.InvalidMarshallableException - If a marshalling error occurs.public void unexpectedField(Object event, ValueIn valueIn) throws net.openhft.chronicle.core.io.InvalidMarshallableException
event - The name or identifier of the unexpected field.valueIn - The value associated with the unexpected field.net.openhft.chronicle.core.io.InvalidMarshallableException - If there's an error during the processing.Copyright © 2023. All rights reserved.