[
https://issues.apache.org/jira/browse/PROTON-2873?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18078332#comment-18078332
]
ASF subversion and git services commented on PROTON-2873:
---------------------------------------------------------
Commit e1695bc5e1013f65777af8ef2a92a62b9609e047 in qpid-proton's branch
refs/heads/main from Andrew Stitcher
[ https://gitbox.apache.org/repos/asf?p=qpid-proton.git;h=e1695bc5e ]
PROTON-2873: Make it easier to switch between disposition types
Add pn_disposition_clear to exposed API so that you can set a
change the disposition type and parameters of a disposition that is
already set using the new disposition API.
Doing this is an unusual case, but occurs when you have an incoming
delivery inside a transaction which has been transactionally
acknowledged but the transaction aborts or commit fails and now needs to
be have a modified disposition.
> Reorganize delivery disposition API and representation
> ------------------------------------------------------
>
> Key: PROTON-2873
> URL: https://issues.apache.org/jira/browse/PROTON-2873
> Project: Qpid Proton
> Issue Type: Improvement
> Components: proton-c
> Affects Versions: proton-c-0.40.0
> Reporter: Andrew Stitcher
> Assignee: Andrew Stitcher
> Priority: Major
> Fix For: proton-c-0.41.0
>
>
> The internal representation and modelling for delivery dispositions is
> significantly different from the model of dispositions in the AMQP spec.
> One case in point causes the disposition representation to use more space
> than necessary as every field in every possible type of disposition is
> present. A better representation would be a union of the different
> disposistion types so that only the needed fields of whichever specific type
> of disposition is being used is present.
> For the present this would need to be additional APIs to maintain backwards
> compatibility. But the current disposition API should be deprecated and could
> be removed for a 1.0 release.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]