Class: Karafka::Processing::Jobs::Eofed
- Defined in:
- lib/karafka/processing/jobs/eofed.rb
Overview
Job that runs the eofed operation when we receive eof without messages alongside.
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from 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 Base
#after_call, #before_call, #finish!, #finished?, #non_blocking?
Constructor Details
#initialize(executor) ⇒ Eofed
10 11 12 13 |
# File 'lib/karafka/processing/jobs/eofed.rb', line 10 def initialize(executor) @executor = executor super() end |
Instance Method Details
#before_schedule ⇒ Object
Runs code prior to scheduling this eofed job
16 17 18 |
# File 'lib/karafka/processing/jobs/eofed.rb', line 16 def before_schedule executor.before_schedule_eofed end |
#call ⇒ Object
Runs the eofed job via an executor.
21 22 23 |
# File 'lib/karafka/processing/jobs/eofed.rb', line 21 def call executor.eofed end |