Class PersistentAtomicPointSerializer
java.lang.Object
com.inductiveautomation.historian.gateway.api.storeforward.serialization.AbstractPointSerializer<PersistentAtomicPoint, DataPointProto.AtomicPointPB>
com.inductiveautomation.historian.gateway.api.storeforward.serialization.PersistentAtomicPointSerializer
- All Implemented Interfaces:
PersistentSerializer<PersistentAtomicPoint, DataPointProto.AtomicPointPB>
public final class PersistentAtomicPointSerializer
extends AbstractPointSerializer<PersistentAtomicPoint, DataPointProto.AtomicPointPB>
Serializes
PersistentAtomicPoint to/from the generic
common.protobuf.AtomicPointPB wire format, encoding with HistorianProtoCodec, the same
encoder RPC and replication use. Proto and JSON forms are derived from the binary form by AbstractPointSerializer.- Since:
- 2027.02
-
Constructor Summary
ConstructorsConstructorDescriptionCreates the serializer bound to theAtomicPointPBproto type. -
Method Summary
Modifier and TypeMethodDescriptionfromBytes(byte[] bytes, @Nullable DeserializationContext context) Deserializes the given byte array into a TPersistentDataobject.@NonNull Class<PersistentAtomicPoint> The TPersistentDataclass that is compatible with this serializer.byte[]toBytes(PersistentAtomicPoint data, @Nullable SerializationContext context) Serializes the given TPersistentDatainto a byte array.Methods inherited from class AbstractPointSerializer
fromJson, fromJsonElement, fromProtoMessage, toJson, toJsonElement, toProtoMessage
-
Constructor Details
-
PersistentAtomicPointSerializer
public PersistentAtomicPointSerializer()Creates the serializer bound to theAtomicPointPBproto type.
-
-
Method Details
-
toBytes
Description copied from interface:PersistentSerializerSerializes the given TPersistentDatainto a byte array.- Parameters:
data- The TPersistentDatato serialize.context- The serialization context to use for serialization.- Returns:
- The serialized data as a byte array.
-
fromBytes
public PersistentAtomicPoint fromBytes(byte[] bytes, @Nullable DeserializationContext context) throws DeserializeException Description copied from interface:PersistentSerializerDeserializes the given byte array into a TPersistentDataobject.- Parameters:
bytes- The byte array to deserialize.context- The deserialization context to use for deserialization.- Returns:
- The deserialized persistent data object.
- Throws:
DeserializeException- If an error occurs during deserialization.
-
getCompatibleClass
Description copied from interface:PersistentSerializerThe TPersistentDataclass that is compatible with this serializer.- Returns:
- The T
PersistentDataclass.
-