Class: Qpid::Proton::Handler::MessagingHandler Deprecated
- Inherits:
-
Object
- Object
- Qpid::Proton::Handler::MessagingHandler
- Defined in:
- lib/handler/messaging_handler.rb
Overview
Deprecated.
use MessagingHandler
Instance Attribute Summary collapse
-
#options ⇒ Hash
readonly
Handler options, see #initialize.
Instance Method Summary collapse
-
#initialize(*args) ⇒ MessagingHandler
constructor
deprecated
Deprecated.
use initialize(opts) overload
Constructor Details
#initialize(opts) ⇒ MessagingHandler #initialize(prefetch = 10, auto_accept = true, auto_settle = true, peer_close_is_error = false) ⇒ MessagingHandler
Deprecated.
use initialize(opts) overload
Returns a new instance of MessagingHandler.
53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/handler/messaging_handler.rb', line 53 def initialize(*args) deprecated MessagingHandler, Qpid::Proton::MessagingHandler @options = {} if args.size == 1 && args[0].is_a?(Hash) @options.replace(args[0]) else # Fill options from deprecated fixed arguments [:prefetch, :auto_accept, :auto_settle, :peer_close_is_error].each do |k| opts[k] = args.shift unless args.empty? end end # NOTE: the options are processed by {Handler::Adapater} end |
Instance Attribute Details
#options ⇒ Hash (readonly)
Returns handler options, see #initialize.
69 70 71 |
# File 'lib/handler/messaging_handler.rb', line 69 def @options end |