Re: draft Carrier API

Alex Otenko via Concurrency-interest <[email protected]> Wed, 11 Mar 2020 11:17:23 +0000
Newsgroups gmane.comp.java.jsr.166-concurrency
Message-ID <CANkgWKjxL+b59LitVwnOpjXpVtraLm_HtwxPp5f7e5rrJPuy+Q@mail.gmail.com>
I don't think so.

Count messages sent, and count messages returned by receive. When the count
of receive reaches the number for the message sent using sendSynchronously,
unblock the sendSynchronously.

It is useful as a barrier.

Alex

On Wed, 11 Mar 2020, 08:23 Alexei Kaigorodov via Concurrency-interest, <
[email protected]> wrote:

> The method sendSynchronously() requires to wrap each message in an envelope
> which also contains a reference to sender, to pass ack signal. This is a
> pure performance loss for (most frequent) cases where acknowledge is not
> required. Besides, this method has little sense. It notificates sender that
> the message has left the carrier, but did it reached the destination? There
> can be other intermediate steps between the sender and the destination.
> I propose to remove this method.
>
>
>
> --
> Sent from: http://jsr166-concurrency.10961.n7.nabble.com/
> _______________________________________________
> Concurrency-interest mailing list
> [email protected]
> http://cs.oswego.edu/mailman/listinfo/concurrency-interest
>

_______________________________________________
Concurrency-interest mailing list
[email protected]
http://cs.oswego.edu/mailman/listinfo/concurrency-interest