Namespace: OpenEdge.Messaging
Type: Interface ISerializer
Parent Classes:
Inherits: Progress.Lang.Object


/*
Copyright © 2021 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
Purpose:
A serializer is responsible for converting ProducerRecord body objects to a memptr. The
bytes referenced by the memptr are passed to the messaging implementation.
There is no prescribed format for sending a message. The serializer
may return an empty memptr, but cannot return an UNKNOWN value. Doing so
will cause the producer to raise an error.



Method Summary
  Options Name Purpose
  MEMPTR Serialize (Object, ISerializationContext) /** Convert an object to a memptr. The byte array referenced by the memptr is passed as-is to the messaging implementation. @param data An object that is to be serialized to a MEMPTR. @param serializationContext The serialization context provided by the producer. @return The byte data that is to be sent over the network by the producer. */

Method Detail
Top

MEMPTR Serialize (Object, ISerializationContext)

Purpose:
Convert an object to a memptr. The byte array referenced by the memptr
is passed as-is to the messaging implementation.
Parameters:
data Progress.Lang.Object
  An object that is to be serialized to a MEMPTR.
serializationContext OpenEdge.Messaging.ISerializationContext
  The serialization context provided by the producer.
Returns MEMPTR
  The byte data that is to be sent over the network by the producer.