ex_fix v0.2.3 ExFix.SessionRegistry behaviour

Session registry.

Link to this section Summary

Callbacks

Returns the current status of a FIX session

Invoked by FIX session, before connecting, to know if it’s ok to connect

Invoked by FIX session to update its status

Stops a FIX session

Link to this section Callbacks

Link to this callback get_session_status(session_name)
get_session_status(session_name :: ExFix.Session.session_name) :: ExFix.Session.session_status

Returns the current status of a FIX session

Link to this callback session_on_init(session_name)
session_on_init(session_name :: ExFix.Session.session_name) ::
  :ok |
  :wait_to_reconnect |
  {:error, reason :: term}

Invoked by FIX session, before connecting, to know if it’s ok to connect

Link to this callback session_update_status(session_name, status)
session_update_status(session_name :: ExFix.Session.session_name, status :: ExFix.Session.session_status) :: :ok

Invoked by FIX session to update its status.

Link to this callback start_session(session_name, config)
start_session(session_name :: ExFix.Session.session_name, config :: ExFix.SessionConfig.t) :: :ok

Starts a FIX session

Link to this callback stop_session(session_name)
stop_session(session_name :: ExFix.Session.session_name) :: :ok

Stops a FIX session