Module mqtt_sessions_retain

Copyright © 2018 Marc Worrell

Behaviours: gen_server.

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

Function Index

cleanup/1
code_change/3
handle_call/3
handle_cast/2
handle_info/2
init/1
lookup/2
retain/3
start_link/1
terminate/2

Function Details

cleanup/1

cleanup(Pool::atom()) -> ok

code_change/3

code_change(Vsn, State, Extra) -> any()

handle_call/3

handle_call(Cmd, From, State) -> any()

handle_cast/2

handle_cast(Cmd, State) -> any()

handle_info/2

handle_info(Info, State) -> any()

init/1

init(X1::[atom()]) -> {ok, #state{pool = atom(), topics = ets:tab(), messages = ets:tab()}}

lookup/2

lookup(Pool::atom(), TopicFilter::[binary()]) -> {ok, [{mqtt_packet_map:mqtt_message(), term()}]}

retain/3

retain(Pool::atom(), Msg::mqtt_packet_map:mqtt_message(), PublisherContext::term()) -> ok

start_link/1

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

terminate/2

terminate(Reason, State) -> any()


Generated by EDoc