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

Method settle

python/proton/_utils.py:290–301  ·  view source on GitHub ↗

Settle any received messages. :param state: Update the delivery of all unsettled messages with the supplied state, then settle them. :type state: ``None`` or a valid delivery state (see :class:`proton.Delivery`.

(self, state: Optional['DispositionType'] = None)

Source from the content-addressed store, hash-verified

288 self.settle(Delivery.RELEASED)
289
290 def settle(self, state: Optional['DispositionType'] = None):
291 """
292 Settle any received messages.
293
294 :param state: Update the delivery of all unsettled messages with the
295 supplied state, then settle them.
296 :type state: ``None`` or a valid delivery state (see
297 :class:`proton.Delivery`.
298 """
299 if not self.fetcher:
300 raise Exception("Can't call accept/reject etc on this receiver as a handler was not provided")
301 self.fetcher.settle(state)
302
303
304class LinkDetached(LinkException):

Callers 3

acceptMethod · 0.95
rejectMethod · 0.95
releaseMethod · 0.95

Calls 1

settleMethod · 0.45

Tested by

no test coverage detected