Release the received message. :param delivered: If ``True``, the message delivery is being set to :const:`proton.Delivery.MODIFIED`, ie being returned to the sender and annotated. If ``False``, the message is returned without annotations and the
(self, delivered: bool = True)
| 274 | self.settle(Delivery.REJECTED) |
| 275 | |
| 276 | def release(self, delivered: bool = True) -> None: |
| 277 | """ |
| 278 | Release the received message. |
| 279 | |
| 280 | :param delivered: If ``True``, the message delivery is being set to |
| 281 | :const:`proton.Delivery.MODIFIED`, ie being returned to the sender |
| 282 | and annotated. If ``False``, the message is returned without |
| 283 | annotations and the delivery set to :const:`proton.Delivery.RELEASED`. |
| 284 | """ |
| 285 | if delivered: |
| 286 | self.settle(Delivery.MODIFIED) |
| 287 | else: |
| 288 | self.settle(Delivery.RELEASED) |
| 289 | |
| 290 | def settle(self, state: Optional['DispositionType'] = None): |
| 291 | """ |