Class: Karafka::Processing::Partitioner
- Inherits:
-
Object
- Object
- Karafka::Processing::Partitioner
- Defined in:
- lib/karafka/processing/partitioner.rb
Overview
Basic partitioner for work division It does not divide any work.
Direct Known Subclasses
Instance Method Summary collapse
- #call(_topic, messages, _coordinator) {|group, karafka| ... } ⇒ Object
-
#initialize(subscription_group) ⇒ Partitioner
constructor
A new instance of Partitioner.
Constructor Details
#initialize(subscription_group) ⇒ Partitioner
Returns a new instance of Partitioner.
9 10 11 |
# File 'lib/karafka/processing/partitioner.rb', line 9 def initialize(subscription_group) @subscription_group = subscription_group end |
Instance Method Details
#call(_topic, messages, _coordinator) {|group, karafka| ... } ⇒ Object
19 20 21 |
# File 'lib/karafka/processing/partitioner.rb', line 19 def call(_topic, , _coordinator) yield(0, ) end |