]
Bela Ban resolved JGRP-2067.
----------------------------
Resolution: Done
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.
Downside: this requires a lot of code changes (mainly in protocols)!