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/18 22:30:25 UTC
[08/32] 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/deec926b
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/deec926b
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/deec926b
Branch: refs/heads/master
Commit: deec926b186afb1f90876a6d98e5ca6dee8abed0
Parents: 8316e61
Author: Darryl L. Pierce <mc...@gmail.com>
Authored: Wed Feb 25 13:29:22 2015 -0500
Committer: Darryl L. Pierce <mc...@gmail.com>
Committed: Thu Jun 18 16:28:43 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/deec926b/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/deec926b/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