lib/pwwka/configuration.rb in pwwka-0.9.0 vs lib/pwwka/configuration.rb in pwwka-0.10.0.RC

- old
+ new

@@ -7,10 +7,11 @@ attr_accessor :rabbit_mq_host attr_accessor :topic_exchange_name attr_accessor :delayed_exchange_name attr_accessor :logger attr_accessor :options + attr_accessor :async_job_klass attr_accessor :send_message_resque_backoff_strategy attr_accessor :requeue_on_error attr_writer :keep_alive_on_handler_klass_exceptions def initialize @@ -22,9 +23,10 @@ @send_message_resque_backoff_strategy = [5, #intermittent glitch? 60, # quick interruption 600, 600, 600] # longer-term outage? @requeue_on_error = false @keep_alive_on_handler_klass_exceptions = false + @async_job_klass = Pwwka::SendMessageAsyncJob end def keep_alive_on_handler_klass_exceptions? @keep_alive_on_handler_klass_exceptions end