Sha256: d71cc5f770212339412e1130444c559b690b70447d181da297e2dd96fc426ea5
Contents?: true
Size: 482 Bytes
Versions: 1
Compression:
Stored size: 482 Bytes
Contents
# @api private module Torquebox module Messaging # A message processor that echos any messages sent to it back to # another queue specified by the response_queue configuration option class EchoProcessor < TorqueBox::Messaging::MessageProcessor def initialize(options={}) @response_queue = TorqueBox::Messaging::Queue.new(options['response_queue']) end def on_message(body) @response_queue.publish(body) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
torquebox-messaging-2.2.0-java | lib/torquebox/messaging/echo_processor.rb |