Review Board 1.7.22


Refactors the Qpid::Messaging::Session APIs and RDocs.

Review Request #2978 - Created Nov. 30, 2011 and submitted

Darryl Pierce
QPID-3639
Reviewers
astitcher, gordon, tross
qpid
Cleans up and makes the APIs more Ruby-like. Added better RDoc documentation to the APIs.

 
trunk/qpid/cpp/bindings/qpid/ruby/lib/qpid/connection.rb
Revision 1208094 New Change
[20] 110 lines
[+20] [+] def create_session(args = {})
111
          if args[:transactional]
111
          if args[:transactional]
112
            session = @connection_impl.createTransactionalSession name
112
            session = @connection_impl.createTransactionalSession name
113
          else
113
          else
114
            session = @connection_impl.createSession name
114
            session = @connection_impl.createSession name
115
          end
115
          end
116
          return Session.new(session)
116
          return Session.new(self, session)
117
        else
117
        else
118
          raise RuntimeError.new "No connection available."
118
          raise RuntimeError.new "No connection available."
119
        end
119
        end
120
      end
120
      end
121

    
   
121

   
[+20] [20] 56 lines
trunk/qpid/cpp/bindings/qpid/ruby/lib/qpid/receiver.rb
Revision 1208094 New Change
 
trunk/qpid/cpp/bindings/qpid/ruby/lib/qpid/sender.rb
Revision 1208094 New Change
 
trunk/qpid/cpp/bindings/qpid/ruby/lib/qpid/session.rb
Revision 1208094 New Change
 
trunk/qpid/cpp/bindings/qpid/ruby/test/test_receiver.rb
Revision 1208094 New Change
 
trunk/qpid/cpp/bindings/qpid/ruby/test/test_sender.rb
Revision 1208094 New Change
 
trunk/qpid/cpp/bindings/qpid/ruby/test/test_session.rb
Revision 1208094 New Change
 
  1. trunk/qpid/cpp/bindings/qpid/ruby/lib/qpid/connection.rb: Loading...
  2. trunk/qpid/cpp/bindings/qpid/ruby/lib/qpid/receiver.rb: Loading...
  3. trunk/qpid/cpp/bindings/qpid/ruby/lib/qpid/sender.rb: Loading...
  4. trunk/qpid/cpp/bindings/qpid/ruby/lib/qpid/session.rb: Loading...
  5. trunk/qpid/cpp/bindings/qpid/ruby/test/test_receiver.rb: Loading...
  6. trunk/qpid/cpp/bindings/qpid/ruby/test/test_sender.rb: Loading...
  7. trunk/qpid/cpp/bindings/qpid/ruby/test/test_session.rb: Loading...