<divclass="summary-synopsis"><p>In this callback is called when the Receiver process receives an erlang message</p>
</div>
</div>
<divclass="summary-row">
<divclass="summary-signature">
<ahref="#init_receiver/1">init_receiver(opts)</a>
</div>
<divclass="summary-synopsis"><p>A callback executed when the Receiver Plugin starts.
The argument is retrieved from the configuration file when the Receiver is defined
It must return <codeclass="inline">{:ok, state}</code>, that <codeclass="inline">state</code> will be keept as in <ahref="https://hexdocs.pm/elixir/GenServer.html"><codeclass="inline">GenServer</code></a> and can be
retrieved in the <ahref="#metrics_received/3"><codeclass="inline">metrics_received/3</code></a> function</p>
<p> This function is called when a Custom Handler detects a client is inactive.</p>
<p> The Custom Handler must to call explicity to <ahref="POABackend.CustomHandler.html#publish_inactive/1"><codeclass="inline">POABackend.CustomHandler.publish_inactive/1</code></a> and it will publish the
<codeclass="inline">inactive</code> message to all the metrics in the system (defined in the config file).</p>
<p>Callback implementation for <ahref="POABackend.Receiver.html#c:handle_inactive/2"><codeclass="inline">POABackend.Receiver.handle_inactive/2</code></a>.</p>
</section>
</div>
<divclass="detail"id="handle_message/2">
<divclass="detail-header">
<ahref="#handle_message/2"class="detail-link"title="Link to this function">
<p> In this callback is called when the Receiver process receives an erlang message.</p>
<p> It must return <codeclass="inline">{:ok, state}</code>.</p>
<p>Callback implementation for <ahref="POABackend.Receiver.html#c:handle_message/2"><codeclass="inline">POABackend.Receiver.handle_message/2</code></a>.</p>
</section>
</div>
<divclass="detail"id="init_receiver/1">
<divclass="detail-header">
<ahref="#init_receiver/1"class="detail-link"title="Link to this function">
<p> A callback executed when the Receiver Plugin starts.
The argument is retrieved from the configuration file when the Receiver is defined
It must return <codeclass="inline">{:ok, state}</code>, that <codeclass="inline">state</code> will be keept as in <ahref="https://hexdocs.pm/elixir/GenServer.html"><codeclass="inline">GenServer</code></a> and can be
retrieved in the <ahref="#metrics_received/3"><codeclass="inline">metrics_received/3</code></a> function.</p>
<p>Callback implementation for <ahref="POABackend.Receiver.html#c:init_receiver/1"><codeclass="inline">POABackend.Receiver.init_receiver/1</code></a>.</p>
</section>
</div>
<divclass="detail"id="metrics_received/3">
<divclass="detail-header">
<ahref="#metrics_received/3"class="detail-link"title="Link to this function">
<p> This callback will be called every time a message to the subscribed metric type arrives. It must
return the tuple <codeclass="inline">{:ok, state}</code></p>
<p>Callback implementation for <ahref="POABackend.Receiver.html#c:metrics_received/3"><codeclass="inline">POABackend.Receiver.metrics_received/3</code></a>.</p>
</section>
</div>
<divclass="detail"id="terminate/1">
<divclass="detail-header">
<ahref="#terminate/1"class="detail-link"title="Link to this function">