Exmld.KinesisWorker.init
You're seeing just the function
init
, go back to Exmld.KinesisWorker module for more information.
Initialize worker state with a shard id and a set of options.
An erlmld_batch_processor
is initializing processing on shard_id
and providing the
flusher_mod_data
which was passed to it, which should be an enumerable of keyword
s
containing the following options; we return a flusher state to be used in subsequent
operations.
Options
All optional unless marked required:
:stages
- (required) list ofGenStage
s (values useable as first arg toGenStage.call/3
) which can receiveExmld.KinesisWorker.Datum
s:opaque
- opaque term passed in eachExmld.KinesisWorker.Datum
:skip_errors
- boolean indicating whether errors are non-fatal (if false, crash on error).:max_pending
- maximum number of pending items which can be in flight.:await_sleep_interval
- sleep time between checks while awaiting pending items.:error_callback
-nil
or an arity-2 function called with state and failure dispositions when processing failures occur.