Sha256: 3062166e548c3e2c33ba619677a5d4c6cf205a01e4fd0f1410f993e31acc6a85

Contents?: true

Size: 232 Bytes

Versions: 10

Compression:

Stored size: 232 Bytes

Contents

# frozen_string_literal: true

class BatchConsumer < Racecar::Consumer
  subscribes_to "messages", start_from_beginning: false

  def process_batch(messages)
    messages.each do |message|
      puts message.value
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
racecar-2.11.0 examples/batch_consumer.rb
racecar-2.11.0.beta4 examples/batch_consumer.rb
racecar-2.11.0.beta3 examples/batch_consumer.rb
racecar-2.11.0.beta2 examples/batch_consumer.rb
racecar-2.11.0.beta1 examples/batch_consumer.rb
racecar-2.10.0 examples/batch_consumer.rb
racecar-2.10.0.beta2 examples/batch_consumer.rb
racecar-2.10.0.beta1 examples/batch_consumer.rb
racecar-2.9.0 examples/batch_consumer.rb
racecar-2.9.0.beta1 examples/batch_consumer.rb