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

Method data

python/proton/_delivery.py:164–180  ·  view source on GitHub ↗

Access the disposition as a :class:`Data` object. Dispositions are an extension point in the AMQP protocol. The disposition interface provides setters/getters for those dispositions that are predefined by the specification, however access to the raw disposition data

(self)

Source from the content-addressed store, hash-verified

162
163 @property
164 def data(self) -> Optional[List[int]]:
165 """Access the disposition as a :class:`Data` object.
166
167 Dispositions are an extension point in the AMQP protocol. The
168 disposition interface provides setters/getters for those
169 dispositions that are predefined by the specification, however
170 access to the raw disposition data is provided so that other
171 dispositions can be used.
172
173 The :class:`Data` object returned by this operation is valid until
174 the parent delivery is settled.
175 """
176 if self.local:
177 return self._data
178 else:
179 r = dat2obj(pn_disposition_data(self._impl))
180 return r if r != [] else None
181
182 @data.setter
183 def data(self, obj: List[int]) -> None:

Callers

nothing calls this directly

Calls 3

dat2objFunction · 0.85
pn_disposition_dataFunction · 0.85
AttributeErrorClass · 0.85

Tested by

no test coverage detected