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)
| 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: |
nothing calls this directly
no test coverage detected