Class: Strum::Esb::ThreadVariablesCleaner
- Inherits:
-
Object
- Object
- Strum::Esb::ThreadVariablesCleaner
- Defined in:
- lib/strum/esb.rb
Instance Method Summary collapse
- #call(deserialized_msg, delivery_info, metadata, handler) ⇒ Object
-
#initialize(app, *args) ⇒ ThreadVariablesCleaner
constructor
A new instance of ThreadVariablesCleaner.
Constructor Details
#initialize(app, *args) ⇒ ThreadVariablesCleaner
Returns a new instance of ThreadVariablesCleaner.
64 65 66 67 |
# File 'lib/strum/esb.rb', line 64 def initialize(app, *args) @app = app @args = args end |
Instance Method Details
#call(deserialized_msg, delivery_info, metadata, handler) ⇒ Object
69 70 71 72 |
# File 'lib/strum/esb.rb', line 69 def call(deserialized_msg, delivery_info, , handler) Thread.current.keys.each { |key| Thread.current[key] = nil } @app.call(deserialized_msg, delivery_info, , handler) end |