kinesis_client v1.0.0-rc.0 KinesisClient.Stream.Coordinator View Source

This module will describe a given stream and enumerate all the shards. It will then handle starting and stopping KinesisClient.Stream.Shard processes as necessary to ensure the stream is processed completely and in the correct order.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Starts a KinesisClient.Stream.Coordinator. KinesisClient.Stream should handle starting this.

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

close_shard(coordinator, shard_id)

View Source
Link to this function

create_table_if_not_exists(state)

View Source

Starts a KinesisClient.Stream.Coordinator. KinesisClient.Stream should handle starting this.

Options

  • :name - Required. The process name.
  • :app_name - Required. Will be used to name the DyanmoDB table.
  • :stream_name - Required. The stream to describe and start Shard workers for.
  • :shard_supervisor_name - Required. Needed in order to start Shard workers.