Class: MedularisDaemonsCommon::ThreadPoolJob

Inherits:
Object
  • Object
show all
Defined in:
lib/threadpool.rb

Overview

Work item to be executed in thread pool

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#handlerObject

Returns the value of attribute handler.



7
8
9
# File 'lib/threadpool.rb', line 7

def handler
  @handler
end

#paramsObject

Returns the value of attribute params.



8
9
10
# File 'lib/threadpool.rb', line 8

def params
  @params
end