[jboss-jira] [JBoss JIRA] (JGRP-1851) RSVP: add option to not block caller
Bela Ban (JIRA)
issues at jboss.org
Fri Jun 13 03:08:38 EDT 2014
[ https://issues.jboss.org/browse/JGRP-1851?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12975904#comment-12975904 ]
Bela Ban commented on JGRP-1851:
--------------------------------
The 'block' option may need to be defined per call, so perhaps a {{NON_BLOCKING_RSVP}} flag needs to be added ? But then we may also want to define timeout, resend interval etc, which leads to a permutation of flags...
Should a header be (ab)used to define 'options' to an RSVP call ? Hmm, not nice...
> RSVP: add option to not block caller
> ------------------------------------
>
> Key: JGRP-1851
> URL: https://issues.jboss.org/browse/JGRP-1851
> Project: JGroups
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Reporter: Bela Ban
> Assignee: Bela Ban
> Priority: Minor
> Fix For: 3.5
>
>
> In RSVP we have a {{resend_interval}} at which empty messages are sent to trigger retransmission and a {{timeout}} which is the max time a caller will block until all acks have been received.
> In the {{down()}} method, the caller blocks until all acks have been received or a timeout occured. Then the resend task is stopped and the entry removed from the {{ids}} map.
> In some cases, we may want to not block the caller, so that the calling thread returns immediately, but nevertheless perform resending until all acks have been received or the timeout occurred. This is a new property {{block}}.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
More information about the jboss-jira
mailing list