You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by mc...@apache.org on 2015/06/08 20:13:36 UTC

[07/31] qpid-proton git commit: PROTON-781: Added the CFlowController class to the Ruby reactive APIs.

PROTON-781: Added the CFlowController class to the Ruby reactive APIs.


Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/b65cd5e1
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/b65cd5e1
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/b65cd5e1

Branch: refs/heads/PROTON-781-ruby-reactor-apis
Commit: b65cd5e1c7f1525d00226fe6332b1da4762e31e4
Parents: 43970df
Author: Darryl L. Pierce <mc...@gmail.com>
Authored: Wed Feb 25 13:29:22 2015 -0500
Committer: Darryl L. Pierce <mc...@gmail.com>
Committed: Mon Jun 8 13:57:51 2015 -0400

----------------------------------------------------------------------
 .../ruby/lib/handler/c_flow_controller.rb       | 33 ++++++++++++++++++++
 proton-c/bindings/ruby/lib/qpid_proton.rb       |  1 +
 2 files changed, 34 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/b65cd5e1/proton-c/bindings/ruby/lib/handler/c_flow_controller.rb
----------------------------------------------------------------------
diff --git a/proton-c/bindings/ruby/lib/handler/c_flow_controller.rb b/proton-c/bindings/ruby/lib/handler/c_flow_controller.rb
new file mode 100644
index 0000000..377cc2f
--- /dev/null
+++ b/proton-c/bindings/ruby/lib/handler/c_flow_controller.rb
@@ -0,0 +1,33 @@
+#--
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#++
+
+module Qpid::Proton::Handler
+
+  # @private
+  class CFlowController < Qpid::Proton::Handler::WrappedHandler
+
+    include Qpid::Proton::Util::Wrapper
+
+    def initialize(window = 1024)
+      super(Cproton.pn_flowcontroller(window))
+    end
+
+  end
+
+end

http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/b65cd5e1/proton-c/bindings/ruby/lib/qpid_proton.rb
----------------------------------------------------------------------
diff --git a/proton-c/bindings/ruby/lib/qpid_proton.rb b/proton-c/bindings/ruby/lib/qpid_proton.rb
index 08e60b9..e14ff9d 100644
--- a/proton-c/bindings/ruby/lib/qpid_proton.rb
+++ b/proton-c/bindings/ruby/lib/qpid_proton.rb
@@ -86,6 +86,7 @@ require "handler/c_adaptor"
 require "handler/wrapped_handler"
 require "handler/acking"
 require "handler/endpoint_state_handler"
+require "handler/c_flow_controller"
 
 module Qpid::Proton
   # @private


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org