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

cache object returned from Message.getObject() (deserialization occurs on every call)

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Won't Do
    • Icon: Major Major
    • 2.6.3, 2.7
    • 2.6.2
    • None

      Proposed solution:

      33 /** The payload */
      34 private byte[] buf=null;
      34.1 private Object obj;

      291 final public Object getObject() {
      291.1 if (obj == null) {
      292 try

      { 293 obj = Util.objectFromByteBuffer(buf, offset, length); 294 }

      295 catch(Exception ex)

      { 296 throw new IllegalArgumentException(ex); 297 }

      297.1 }
      297.2 return obj;
      298 }

              rhn-engineering-bban Bela Ban
              mnewcomb_jira Michael Newcomb (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: