View Source Hedgex.CaptureConsumer (hedgex v0.3.4)

Summary

Types

@type options() :: [
  flush_interval: pos_integer(),
  flush_batch_size: pos_integer(),
  subscribe_to: atom() | {atom(), keyword()}
]
@type state() :: %{
  queue: :queue.queue(),
  queue_size: pos_integer() | 0,
  next_flush_timer: reference() | nil,
  flush_interval: pos_integer(),
  flush_batch_size: pos_integer()
}

Functions

Link to this function

handle_events(events, from, state)

View Source

Callback implementation for GenStage.handle_events/3.

Link to this function

handle_info(atom, state)

View Source

Callback implementation for GenStage.handle_info/2.

Callback implementation for GenStage.init/1.

@spec start_link(options()) :: GenServer.on_start()

Callback implementation for GenStage.terminate/2.