Class: MedularisDaemonsCommon::ThreadPoolJob
- Inherits:
-
Object
- Object
- MedularisDaemonsCommon::ThreadPoolJob
- Defined in:
- lib/threadpool.rb
Overview
Work item to be executed in thread pool
Instance Attribute Summary collapse
-
#handler ⇒ Object
Returns the value of attribute handler.
-
#params ⇒ Object
Returns the value of attribute params.
Instance Method Summary collapse
-
#initialize(*params, &block) ⇒ ThreadPoolJob
constructor
A new instance of ThreadPoolJob.
Constructor Details
#initialize(*params, &block) ⇒ ThreadPoolJob
Returns a new instance of ThreadPoolJob.
10 11 12 13 |
# File 'lib/threadpool.rb', line 10 def initialize(*params, &block) @params = params @handler = block end |
Instance Attribute Details
#handler ⇒ Object
Returns the value of attribute handler.
7 8 9 |
# File 'lib/threadpool.rb', line 7 def handler @handler end |
#params ⇒ Object
Returns the value of attribute params.
8 9 10 |
# File 'lib/threadpool.rb', line 8 def params @params end |