DpExchange.Robinhood.Supervisor (DpExchangeRobinhood v0.1.1)

Copy Markdown View Source

This venue's process tree — internal.

A limiter and a feed, exactly as every other venue in the family, even though the feed behind them is a poll rather than a socket. That sameness is the point: a consumer's supervision tree looks identical whichever venue it holds.

The limiter here has an incident behind it

Configured from the ceilings capabilities/0 declares, like every venue. What is specific to this one is that its feed calls acquire/3 rather than check/3 — when limiting was first enabled, check/3 took this venue from 87 of 87 symbols delivering to 8 of 87 in one cycle, because a poll that finds no capacity simply skips the symbol.

Summary

Functions

Returns a specification to start this module under a supervisor.

This venue's feed process.

The limiter this venue meters against.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

feed_name(opts)

@spec feed_name(keyword()) :: atom()

This venue's feed process.

limiter_name(opts)

@spec limiter_name(keyword()) :: atom()

The limiter this venue meters against.

start_link(opts)

@spec start_link(keyword()) :: Supervisor.on_start()