You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/05/18 21:11:00 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=17539082#comment-17539082 ]
ASF subversion and git services commented on PROTON-2547:
---------------------------------------------------------
Commit 62e0584b6697de1d57f06f07eb2c4c94e89d634a in qpid-protonj2's branch refs/heads/main from Timothy Bish
[ https://gitbox.apache.org/repos/asf?p=qpid-protonj2.git;h=62e0584b ]
PROTON-2547 Add nextReceiver API to session and connection
Allow a user to poll a session or the base connection's default session
for the next receiver that has a delivery or wait for a delivery to
arrive for any of the session receivers.
> [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