View Source EchoPubSub.Producer.Timers (EchoPubSub v0.2.3)
Schedules the producer's :flush_all: batch flushes, retries and follow-ups. One timer at a time.
Summary
Functions
Flushes at once, regardless of batch_interval or a pending timer.
Flushes after batch_interval (at once when 0), unless a flush is already pending.
Flushes soon if node is still behind: writes that landed while it was
registering or mid-delivery were skipped by the flush that ran then.
Flushes again after retry_interval ms following a failure, unless a flush is already pending.
Functions
@spec flush_now(EchoPubSub.Producer.State.t()) :: EchoPubSub.Producer.State.t()
Flushes at once, regardless of batch_interval or a pending timer.
@spec flush_soon(EchoPubSub.Producer.State.t()) :: EchoPubSub.Producer.State.t()
Flushes after batch_interval (at once when 0), unless a flush is already pending.
@spec follow_up(EchoPubSub.Producer.State.t(), node()) :: EchoPubSub.Producer.State.t()
Flushes soon if node is still behind: writes that landed while it was
registering or mid-delivery were skipped by the flush that ran then.
@spec retry(EchoPubSub.Producer.State.t()) :: EchoPubSub.Producer.State.t()
Flushes again after retry_interval ms following a failure, unless a flush is already pending.