[
https://issues.jboss.org/browse/JGRP-2225?page=com.atlassian.jira.plugin....
]
Bela Ban commented on JGRP-2225:
--------------------------------
We could check at initialization time (setting a flag) whether a protocol implements
{{down(Message)}} but not {{down(MessageBatch)}} and throw an exception (bad!) or
translate the batched {{down()}} method into multiple unbatches ones.
However, this still means we have to implement the batched {{down()}} method for almost
all protocols, plus a single (e.g. new) protocol not doing this would break the batched
down-chain...
I'm therefore currently leaning toward closing this JIRA...
Allow for sending of message batches in JChannel and protocols
--------------------------------------------------------------
Key: JGRP-2225
URL:
https://issues.jboss.org/browse/JGRP-2225
Project: JGroups
Issue Type: Feature Request
Reporter: Bela Ban
Assignee: Bela Ban
Fix For: 5.0
Currently, we receive messages and message batches, but we're not able to _send_
message batches. Investigate adding a {{JChannel.send(MessageBatch)}} and
{{Protocol.down(MessageBatch)}}.
The use case is that if we want to send 10 messages to the same destination, we currently
send 10 messages. Because they're on the same thread, they;re _not_ likely to end up
in the same batch.
Sending a message batch down the stack ensures that all messages end up in the same
message batch (unless the max bundle size is exceeded).
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)