Class SourceChangePointAdapter
java.lang.Object
com.inductiveautomation.historian.common.rpc.adapters.points.SourceChangePointAdapter
- All Implemented Interfaces:
BinaryAdapter<SourceChangePoint>, BinaryDeserializer<SourceChangePoint>, BinarySerializer<SourceChangePoint>
Protobuf binary adapter for
SourceChangePoint.-
Method Summary
Modifier and TypeMethodDescriptiondecode(byte[] serialized, DeserializationContext context) DecodesSourceChangePointfrom its serialized form.byte[]encode(SourceChangePoint any, SerializationContext context) EncodesSourceChangePointto bytes.static SourceChangePointAdapterReturns the singleton instance.
-
Method Details
-
getInstance
Returns the singleton instance. -
decode
public SourceChangePoint decode(byte[] serialized, DeserializationContext context) throws ProtoSerializationException DecodesSourceChangePointfrom its serialized form.- Specified by:
decodein interfaceBinaryDeserializer<SourceChangePoint>- Parameters:
serialized- the serialized valuecontext- the deserialization context- Returns:
- the decoded value
- Throws:
ProtoSerializationException- if decoding fails
-
encode
public byte[] encode(SourceChangePoint any, SerializationContext context) throws ProtoSerializationException EncodesSourceChangePointto bytes.- Specified by:
encodein interfaceBinarySerializer<SourceChangePoint>- Parameters:
any- the value to encodecontext- the serialization context- Returns:
- the serialized value
- Throws:
ProtoSerializationException- if encoding fails
-