Re: [jgroups-users] Callback for non delivered messages?

Questions/problems related to using JGroups <[email protected]> Mon, 30 Mar 2020 15:42:06 -0400
Newsgroups gmane.comp.java.javagroups.general
Message-ID <mailman.80130.1585597349.1370.javagroups-users@lists.sourceforge.net>
--===============4763493886644091631==
Content-Type: multipart/alternative; boundary="00000000000016eca005a217a654"

--00000000000016eca005a217a654
Content-Type: text/plain; charset="UTF-8"

Thanks Bela

I would define "delivery failure" as in, jGroups attempted to deliver a
message to Node X but never received an ACK or NACK for this specific
message. In my use case, i want to be notified of this failure to deliver
so that i can persist the message and reattempt delivery at a later date or
when Node X comes back online.


On Mon, Mar 30, 2020 at 7:44 AM Questions/problems related to using JGroups
<[email protected]> wrote:

>
>
> On 27.03.20 19:22, Questions/problems related to using JGroups wrote:
> > Is there an easy way I can get notification of delivery failure of a
> > give message?
>
> What's a delivery failure? At the application level? You could use
> RpcDispatcher and check RspList for failures (exceptions). Or use the
> JChannel directly and send back ack messages which are collected and
> checked by the sender.
>
> > Also related, Is Channel.send a blocking method?
>
> Not per se. However, send() can block in the following cases:
> * The transport is TCP and the send blocks because of a full TCP
> send-window
> * Flow control (MFC/UFC) blocks because the receiver(s) don't send
> enough credits back
>
> > _______________________________________________
> > javagroups-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/javagroups-users
> >
>
> --
> Bela Ban | http://www.jgroups.org
>
>
>
> _______________________________________________
> javagroups-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/javagroups-users
>

--00000000000016eca005a217a654
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><div>Thanks Bela</div><div><br></div><div=
>I would define &quot;delivery failure&quot; as in, jGroups attempted to de=
liver a message to Node X but never received an ACK or NACK for this specif=
ic message. In my use case, i want to be notified of this failure to delive=
r so that i can persist the message and reattempt delivery at a later date =
or when Node X comes back online.<br></div><div><br></div></div><br><div cl=
ass=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Mon, Mar 30, 2=
020 at 7:44 AM Questions/problems related to using JGroups &lt;<a href=3D"m=
ailto:[email protected]">[email protected]=
forge.net</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=
=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding=
-left:1ex"><br>
<br>
On 27.03.20 19:22, Questions/problems related to using JGroups wrote:<br>
&gt; Is there an easy way I can get notification of delivery failure of a <=
br>
&gt; give message?<br>
<br>
What&#39;s a delivery failure? At the application level? You could use <br>
RpcDispatcher and check RspList for failures (exceptions). Or use the <br>
JChannel directly and send back ack messages which are collected and <br>
checked by the sender.<br>
<br>
&gt; Also related, Is Channel.send a blocking method?<br>
<br>
Not per se. However, send() can block in the following cases:<br>
* The transport is TCP and the send blocks because of a full TCP send-windo=
w<br>
* Flow control (MFC/UFC) blocks because the receiver(s) don&#39;t send <br>
enough credits back<br>
<br>
&gt; _______________________________________________<br>
&gt; javagroups-users mailing list<br>
&gt; <a href=3D"mailto:[email protected]" target=3D"_b=
lank">[email protected]</a><br>
&gt; <a href=3D"https://lists.sourceforge.net/lists/listinfo/javagroups-use=
rs" rel=3D"noreferrer" target=3D"_blank">https://lists.sourceforge.net/list=
s/listinfo/javagroups-users</a><br>
&gt; <br>
<br>
-- <br>
Bela Ban | <a href=3D"http://www.jgroups.org" rel=3D"noreferrer" target=3D"=
_blank">http://www.jgroups.org</a><br>
<br>
<br>
<br>
_______________________________________________<br>
javagroups-users mailing list<br>
<a href=3D"mailto:[email protected]" target=3D"_blank"=
>[email protected]</a><br>
<a href=3D"https://lists.sourceforge.net/lists/listinfo/javagroups-users" r=
el=3D"noreferrer" target=3D"_blank">https://lists.sourceforge.net/lists/lis=
tinfo/javagroups-users</a><br>
</blockquote></div></div>

--00000000000016eca005a217a654--


--===============4763493886644091631==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============4763493886644091631==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
javagroups-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/javagroups-users

--===============4763493886644091631==--