You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Timothy A. Bish (Jira)" <ji...@apache.org> on 2022/05/18 21:29:00 UTC

[jira] [Resolved] (PROTON-2547) [protonj2] Add a nextReceiver API for multiple receiver polling

     [ https://issues.apache.org/jira/browse/PROTON-2547?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy A. Bish resolved PROTON-2547.
-------------------------------------
    Resolution: Fixed

> [protonj2] Add a nextReceiver API for multiple receiver polling
> ---------------------------------------------------------------
>
>                 Key: PROTON-2547
>                 URL: https://issues.apache.org/jira/browse/PROTON-2547
>             Project: Qpid Proton
>          Issue Type: New Feature
>          Components: protonj2
>    Affects Versions: protonj2-1.0.0-M5
>            Reporter: Timothy A. Bish
>            Assignee: Timothy A. Bish
>            Priority: Major
>             Fix For: protonj2-1.0.0-M6
>
>
> Add a new API to Connection and Session that allows a caller to poll for the next receiver in a session that has a pending delivery or wait on one to arrive.
> Basic code example:
> {code:java}
> try (Connection connection = client.connect(serverHost, serverPort, options)) {    
>     connection.openReceiver(address1);
>     connection.openReceiver(address2);                    
>     final Delivery delivery1 = connection.nextReceiver().receive();
>     ...
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org