Sha256: 9042ea440137f659378f747bd622aa0e1e69121bc9934e62786c87ec7812fe19
Contents?: true
Size: 924 Bytes
Versions: 5
Compression:
Stored size: 924 Bytes
Contents
# Handle Messaging and Queuing using JMS module Qwirk module Adapter module Inline class WorkerConfig < Qwirk::Adapter::Base::WorkerConfig bean_attr_accessor :active, :boolean, 'Whether this worker is active or not', :config_item => true def self.default_marshal_sym :none end # Define the default config values for the attributes all workers will share. These will be sent as options to the constructor def self.initial_default_config super.merge(:active => false) end def self.in_process?(config) true end # Hack - Steal attribute from expanding_worker_config so test config can share development config def min_count=(min_count) @active = (min_count > 0) end def create_worker Worker.new(self.name, self.marshaler) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems