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/e5299b29 Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/e5299b29 Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/e5299b29 Branch: refs/heads/PROTON-781-ruby-reactor-apis Commit: e5299b29844eb3187346d158885abb12fc858fae Parents: 132e2a3 Author: Darryl L. Pierce <mcpie...@gmail.com> Authored: Wed Feb 25 13:29:22 2015 -0500 Committer: Darryl L. Pierce <mcpie...@gmail.com> Committed: Thu Jun 18 09:27:20 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/e5299b29/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/e5299b29/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-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org