Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-2529

BytesMessage/NioMessage: change semantics of get/setPayload()

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 5.1.5
    • None
    • None
    • False
    • False
    • Undefined

      Currently, setPayload() invoked on BytesMessage or NioMessage serializes the object into a byte array (byte buffer). However, the equivalent getPayload() returns the byte array/buffer, not the object.
      The semantics should be:

      • in: byte array, out: byte array
      • in: object, out: object
        This can be implemented by adding a SERIALIZED flag: when an object is serialized into a byte array, the flag is set. When set, the byte array isde-serialized into an object on getPayload(), else the byte array is returned.

              rhn-engineering-bban Bela Ban
              rhn-engineering-bban Bela Ban
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: