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

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

    Details

    • Type: Feature Request
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 4.0
    • Labels:
      None

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

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                belaban Bela Ban
                Reporter:
                belaban Bela Ban
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: