Class: Thrift::NonblockingServer::IOManager::Worker
- Inherits:
-
Object
- Object
- Thrift::NonblockingServer::IOManager::Worker
- Defined in:
- lib/thrift/server/nonblocking_server.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(processor, transport_factory, protocol_factory, logger, queue) ⇒ Worker
constructor
A new instance of Worker.
- #spawn ⇒ Object
Constructor Details
#initialize(processor, transport_factory, protocol_factory, logger, queue) ⇒ Worker
Returns a new instance of Worker.
263 264 265 266 267 268 269 |
# File 'lib/thrift/server/nonblocking_server.rb', line 263 def initialize(processor, transport_factory, protocol_factory, logger, queue) @processor = processor @transport_factory = transport_factory @protocol_factory = protocol_factory @logger = logger @queue = queue end |
Instance Method Details
#spawn ⇒ Object
271 272 273 274 275 276 |
# File 'lib/thrift/server/nonblocking_server.rb', line 271 def spawn Thread.new do @logger.debug "#{self} is spawning" run end end |