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:44 UTC

[15/31] qpid-proton git commit: PROTON-781: Added the Reactor mixin to the Ruby reactive APIs.

PROTON-781: Added the Reactor mixin 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/5fc194ad
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/5fc194ad
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/5fc194ad

Branch: refs/heads/PROTON-781-ruby-reactor-apis
Commit: 5fc194adfea522fa36031f7648986e271357a7f7
Parents: f69b972
Author: Darryl L. Pierce <mc...@gmail.com>
Authored: Wed Mar 4 16:37:12 2015 -0500
Committer: Darryl L. Pierce <mc...@gmail.com>
Committed: Mon Jun 8 13:57:52 2015 -0400

----------------------------------------------------------------------
 proton-c/bindings/ruby/lib/qpid_proton.rb  |  1 +
 proton-c/bindings/ruby/lib/util/reactor.rb | 32 +++++++++++++++++++++++++
 2 files changed, 33 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/5fc194ad/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 03f5632..33fe9b6 100644
--- a/proton-c/bindings/ruby/lib/qpid_proton.rb
+++ b/proton-c/bindings/ruby/lib/qpid_proton.rb
@@ -42,6 +42,7 @@ require "util/engine"
 require "util/uuid"
 require "util/timeout"
 require "util/handler"
+require "util/reactor"
 
 # Types
 require "types/strings"

http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/5fc194ad/proton-c/bindings/ruby/lib/util/reactor.rb
----------------------------------------------------------------------
diff --git a/proton-c/bindings/ruby/lib/util/reactor.rb b/proton-c/bindings/ruby/lib/util/reactor.rb
new file mode 100644
index 0000000..0bcb557
--- /dev/null
+++ b/proton-c/bindings/ruby/lib/util/reactor.rb
@@ -0,0 +1,32 @@
+#--
+# 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::Util
+
+  module Reactor
+
+    def create_session(connection, handler = nil)
+      session = connection.session
+      session.open
+      return session
+    end
+
+  end
+
+end


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