Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-2547

[protonj2] Add a nextReceiver API for multiple receiver polling

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • protonj2-1.0.0-M5
    • protonj2-1.0.0-M6
    • protonj2
    • None

    Description

      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:

      try (Connection connection = client.connect(serverHost, serverPort, options)) {    
          connection.openReceiver(address1);
          connection.openReceiver(address2);                    
      
          final Delivery delivery1 = connection.nextReceiver().receive();
      
          ...
      }
      

      Attachments

        Activity

          People

            tabish Timothy A. Bish
            tabish Timothy A. Bish
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: