Proca.Pipes.Connection (proca v3.4.1)
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Allow setting SSL client connection options
Attempts to connect to queue. It can succeed and enter status: :connected Or it can fail and enter status: :reconnecting
Reconnecting procedure - shutdown processing and schedule connection attempt after_seconds
Connect, (todo: reconnect) functionality
Publish data to exchange with a routing key.
Link to this section Functions
child_spec(init_arg)
Returns a specification to start this module under a supervisor.
See Supervisor
.
connect_opts()
Allow setting SSL client connection options
connection()
connection_url()
do_connect(st)
Attempts to connect to queue. It can succeed and enter status: :connected Or it can fail and enter status: :reconnecting
do_reconnecting(map, after_seconds)
Reconnecting procedure - shutdown processing and schedule connection attempt after_seconds
handle_continue(atom, st)
Connect, (todo: reconnect) functionality
is_connected?()
publish(data, exchange, routing_key, channel \\ nil)
Specs
Publish data to exchange with a routing key.
You can pass a channel to re-use it.
Error values: {:error, :reconnectiong | other} - can come from connection() call or opening a channel (though that should not result in an error) or publishing :error - any error with JSON.encode / other errors