PROTON-1537: [ruby] added Tracker#abort
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/a4c50ca4 Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/a4c50ca4 Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/a4c50ca4 Branch: refs/heads/go1 Commit: a4c50ca4a1d20a31a9ac0aa3e27fb41f3084724b Parents: 4859de4 Author: Alan Conway <[email protected]> Authored: Wed Dec 13 16:21:32 2017 -0500 Committer: Alan Conway <[email protected]> Committed: Fri Dec 15 09:59:47 2017 -0500 ---------------------------------------------------------------------- proton-c/bindings/ruby/lib/core/tracker.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/a4c50ca4/proton-c/bindings/ruby/lib/core/tracker.rb ---------------------------------------------------------------------- diff --git a/proton-c/bindings/ruby/lib/core/tracker.rb b/proton-c/bindings/ruby/lib/core/tracker.rb index cf04be9..da6ac0a 100644 --- a/proton-c/bindings/ruby/lib/core/tracker.rb +++ b/proton-c/bindings/ruby/lib/core/tracker.rb @@ -35,6 +35,11 @@ module Qpid::Proton :annotations => Codec::Data.to_object(Cproton.pn_disposition_annotations(d)) } end - end + # Abort a partially-sent message. + # The tracker can no longer be used after calling {#abort}. + def abort() + Cproton.pn_delivery_abort(@impl) + end + end end --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
