Class: RubyHaze::QueueConfig
- Inherits:
-
Object
- Object
- RubyHaze::QueueConfig
- Includes:
- Mixins::Proxy
- Defined in:
- lib/rubyhaze/configs/queue.rb
Instance Attribute Summary
Attributes included from Mixins::Proxy
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name, options = nil) ⇒ QueueConfig
constructor
A new instance of QueueConfig.
Methods included from Mixins::Proxy
included, #method_missing, #respond_to?
Constructor Details
#initialize(name, options = nil) ⇒ QueueConfig
Returns a new instance of QueueConfig.
11 12 13 14 15 16 |
# File 'lib/rubyhaze/configs/queue.rb', line 11 def initialize(name, = nil) @proxy_object = Java::ComHazelcastConfig::QueueConfig.new self.name = name.to_s ||= self.class. .each { |k,v| send "#{k}=", v } end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class RubyHaze::Mixins::Proxy
Class Method Details
.[](name) ⇒ Object
24 25 26 |
# File 'lib/rubyhaze/configs/queue.rb', line 24 def [](name) RubyHaze.config.queue_config name.to_s end |
.default_options ⇒ Object
20 21 22 |
# File 'lib/rubyhaze/configs/queue.rb', line 20 def { :max_size_per_jvm => 10000, :time_to_live_seconds => 0 } end |