Class: Jp::ThriftConsumer

Inherits:
AbstractConsumer show all
Defined in:
lib/rb/jp/consumer.rb

Instance Method Summary collapse

Methods inherited from AbstractConsumer

#poll, #run

Constructor Details

#initialize(queue, base, options = {}, &block) ⇒ ThriftConsumer

Returns a new instance of ThriftConsumer.



71
72
73
74
75
# File 'lib/rb/jp/consumer.rb', line 71

def initialize queue, base, options = {}, &block
	super queue, options, &block
	@base = base
	@deserializer = Thrift::Deserializer.new
end