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

Method annotations

python/proton/_delivery.py:190–206  ·  view source on GitHub ↗

The annotations associated with a disposition. The :class:`Data` object retrieved by this operation may be modified prior to updating a delivery. When a delivery is updated, the annotations described by the :class:`Data` are reported to the peer if applicable to the

(self)

Source from the content-addressed store, hash-verified

188
189 @property
190 def annotations(self) -> Optional[Dict['symbol', 'PythonAMQPData']]:
191 """The annotations associated with a disposition.
192
193 The :class:`Data` object retrieved by this operation may be modified
194 prior to updating a delivery. When a delivery is updated, the
195 annotations described by the :class:`Data` are reported to the peer
196 if applicable to the current delivery state, e.g. states such as
197 :const:`MODIFIED`. The :class:`Data` must be empty or contain a symbol
198 keyed map.
199
200 The :class:`Data` object returned by this operation is valid until
201 the parent delivery is settled.
202 """
203 if self.local:
204 return self._annotations
205 else:
206 return dat2obj(pn_disposition_annotations(self._impl))
207
208 @annotations.setter
209 def annotations(self, obj: Dict[str, 'PythonAMQPData']) -> None:

Callers

nothing calls this directly

Calls 3

dat2objFunction · 0.85
AttributeErrorClass · 0.85

Tested by

no test coverage detected