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

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

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 4.0
    • None
    • None
    • 0
    • 0% 0%

    Description

      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)!

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: