[jboss-jira] [JBoss JIRA] (JGRP-2067) Protocol: add down(Message) and up(Message)

Bela Ban (JIRA) issues at jboss.org
Mon May 23 07:05:00 EDT 2016


Bela Ban created JGRP-2067:
------------------------------

             Summary: Protocol: add down(Message) and up(Message)
                 Key: JGRP-2067
                 URL: https://issues.jboss.org/browse/JGRP-2067
             Project: JGroups
          Issue Type: Feature Request
            Reporter: Bela Ban
            Assignee: Bela Ban
             Fix For: 4.0


Oftentime we have code like this, e.g. in a protocol:
{code:java}
void send(Message msg) {
    ...
    down_prot.down(new Event(Event.MSG, msg));
}
{code}

Most protocols deal mainly with {{Message}} types, so adding {{down(Message msg)}} and {{up(Message msg)}} would simplify the code above to:
{code:java}
void send(Message msg) {
    ...
    down_prot.down(msg);
}
{code}

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



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list