Xirsys.Sockets.Pipeline.Tier (xturn_sockets v2.2.0)
View SourceOne compiled pipeline tier: accumulator, handler, and dispatch strategy.
iex> tier = %Xirsys.Sockets.Pipeline.Tier{
...> accumulator: Xirsys.Sockets.Accumulator.Raw,
...> accumulator_opts: [],
...> handler: :my_handler
...> }
iex> tier.dispatch
:inline
iex> tier.pool_size
nil
Summary
Types
@type t() :: %Xirsys.Sockets.Pipeline.Tier{ accumulator: module(), accumulator_opts: keyword(), dispatch: :inline | :task | :pool, handler: module(), pool_size: pos_integer() | nil, pool_supervisor: atom(), task_supervisor: atom() }
Runtime tier record.
accumulator/accumulator_opts- framing module and itsinit/1optshandler-Xirsys.Sockets.Handlerimplementationdispatch-:inline(same process),:task, or:poolpool_size- max pool children whendispatch: :pool(niluses config)task_supervisor/pool_supervisor- named DynamicSupervisors