Class: Karafka::Processing::ConsumerGroups::Jobs::Eofed
- Inherits:
-
Jobs::Base
- Object
- Jobs::Base
- Karafka::Processing::ConsumerGroups::Jobs::Eofed
- Defined in:
- lib/karafka/processing/consumer_groups/jobs/eofed.rb
Overview
Job that runs the eofed operation when we receive eof without messages alongside.
Direct Known Subclasses
Karafka::Pro::Processing::ConsumerGroups::Jobs::EofedNonBlocking
Instance Attribute Summary
Attributes inherited from Jobs::Base
Instance Method Summary collapse
-
#before_schedule ⇒ Object
Runs code prior to scheduling this eofed job.
-
#call ⇒ Object
Runs the eofed job via an executor.
- #initialize(executor) ⇒ Eofed constructor
Methods inherited from Jobs::Base
#after_call, #before_call, #finish!, #finished?, #non_blocking?, #wrap
Constructor Details
#initialize(executor) ⇒ Eofed
16 17 18 19 |
# File 'lib/karafka/processing/consumer_groups/jobs/eofed.rb', line 16 def initialize(executor) @executor = executor super() end |
Instance Method Details
#before_schedule ⇒ Object
Runs code prior to scheduling this eofed job
22 23 24 |
# File 'lib/karafka/processing/consumer_groups/jobs/eofed.rb', line 22 def before_schedule executor.before_schedule_eofed end |
#call ⇒ Object
Runs the eofed job via an executor.
27 28 29 |
# File 'lib/karafka/processing/consumer_groups/jobs/eofed.rb', line 27 def call executor.eofed end |