Class: RubyRabbitmqJanus::RRJTask
Overview
# RubyRabbitmqJanus - Task
This class is used with rake task.
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from RRJ
Instance Method Summary collapse
-
#handle_endpoint_private(options = {}) ⇒ Object
Create a transaction between Apps and Janus in queue private.
-
#handle_endpoint_public(_options) ⇒ Object
For task is impossible to calling this method.
-
#initialize ⇒ RRJTask
constructor
rubocop:disable Lint/MissingSuper.
-
#session_endpoint_private(options = {}) ⇒ Object
Create a transaction between Apps and Janus in queue private.
-
#session_endpoint_public(_options) ⇒ Object
For task is possible to calling this method, but no action is executed.
Methods inherited from RRJ
Constructor Details
Instance Method Details
#handle_endpoint_private(options = {}) ⇒ Object
Create a transaction between Apps and Janus in queue private
:reek:FeatureEnvy
76 77 78 79 80 81 82 83 84 |
# File 'lib/rrj/task.rb', line 76 def handle_endpoint_private( = {}) janus = session_instance() handle = 0 # Create always a new handle transaction = Janus::Transactions::Handle.new(true, janus.session, handle, janus.instance) transaction.connect { yield(transaction) } end |
#handle_endpoint_public(_options) ⇒ Object
For task is impossible to calling this method
48 49 50 |
# File 'lib/rrj/task.rb', line 48 def handle_endpoint_public() nil end |
#session_endpoint_private(options = {}) ⇒ Object
Create a transaction between Apps and Janus in queue private
36 37 38 39 40 |
# File 'lib/rrj/task.rb', line 36 def session_endpoint_private( = {}) transaction = Janus::Transactions::Session.new(true, ['session_id']) transaction.connect { yield(transaction) } end |
#session_endpoint_public(_options) ⇒ Object
For task is possible to calling this method, but no action is executed
43 44 45 |
# File 'lib/rrj/task.rb', line 43 def session_endpoint_public() nil end |