You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ac...@apache.org on 2017/12/15 21:59:10 UTC

[3/5] qpid-proton git commit: PROTON-1537: [ruby] added Tracker#abort

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/ruby-api
Commit: a4c50ca4a1d20a31a9ac0aa3e27fb41f3084724b
Parents: 4859de4
Author: Alan Conway <ac...@redhat.com>
Authored: Wed Dec 13 16:21:32 2017 -0500
Committer: Alan Conway <ac...@redhat.com>
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: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org