qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acon...@apache.org
Subject [3/5] qpid-proton git commit: PROTON-1537: [ruby] added Tracker#abort
Date Fri, 15 Dec 2017 21:59:10 GMT
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 <aconway@redhat.com>
Authored: Wed Dec 13 16:21:32 2017 -0500
Committer: Alan Conway <aconway@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


Mime
View raw message