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

Protocol: add down(Message) and up(Message)

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 4.0
    • None
    • None

      Oftentime we have code like this, e.g. in a protocol:

      void send(Message msg) {
          ...
          down_prot.down(new Event(Event.MSG, msg));
      }
      

      Most protocols deal mainly with Message types, so adding down(Message msg) and up(Message msg) would simplify the code above to:

      void send(Message msg) {
          ...
          down_prot.down(msg);
      }
      

      This would also lead to a (massive) reduction of Event class creations.

      Downside: this requires a lot of code changes (mainly in protocols)!

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

                Created:
                Updated:
                Resolved: