Module mqtt_sessions_process_sup

Simple one-for-one supervisor for all mqtt_sessions_process workers.

Copyright © 2018 Marc Worrell

Behaviours: supervisor.

Authors: Marc Worrell (marc@worrell.nl).

Description

Simple one-for-one supervisor for all mqtt_sessions_process workers.

Function Index

init/1
name/1
new_session/3
session_count/1
start_link/1

Function Details

init/1

init(X1::[atom()]) -> {ok, {supervisor:sup_flags(), [supervisor:child_spec()]}}

name/1

name(Pool::atom()) -> atom()

new_session/3

new_session(Pool::atom(), ClientId::binary(), SessionOptions::mqtt_sessions:session_options()) -> {ok, {pid(), binary()}}

session_count/1

session_count(Pool::atom()) -> integer()

start_link/1

start_link(Pool::atom()) -> {ok, pid()} | {error, term()}


Generated by EDoc