Class: Thrift::NonblockingServer::IOManager::Worker

Inherits:
Object
  • Object
show all
Defined in:
lib/thrift/server/nonblocking_server.rb

Overview

:nodoc:

Instance Method Summary collapse

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

#spawnObject



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