MCPcopy Create free account
hub / github.com/apache/qpid-proton / release

Method release

python/proton/_utils.py:276–288  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 """

Callers 1

nextMethod · 0.45

Calls 1

settleMethod · 0.95

Tested by

no test coverage detected