Details
-
New Feature
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
protonj2-1.0.0-M5
-
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(); ... }