Module: Consumer::Controls::Get

Defined in:
lib/consumer/controls/get.rb,
lib/consumer/controls/get/incrementing.rb

Defined Under Namespace

Classes: Incrementing

Class Method Summary collapse

Class Method Details

.batch_sizeObject



14
15
16
# File 'lib/consumer/controls/get.rb', line 14

def self.batch_size
  MessageData::Batch.size
end

.example(batch_size: nil) ⇒ Object



4
5
6
7
8
# File 'lib/consumer/controls/get.rb', line 4

def self.example(batch_size: nil)
  batch_size ||= self.batch_size

  MessageStore::Controls::Get.example(stream_name: stream_name, batch_size: batch_size)
end

.stream_nameObject



10
11
12
# File 'lib/consumer/controls/get.rb', line 10

def self.stream_name
  Category.example
end