rafted_value v0.8.0 RaftedValue.RemoteMessageGateway View Source

Default implementation of :communication_module.

Essentially cast/2 behaves as :gen_statem.cast/2 and reply/2 behaves as :gen_statem.reply/2.

This is introduced in order to work-around slow message passing to unreachable nodes. In other words, it uses a temporary process to send message to a not-yet-connected node, as in the same way as e.g. :gen_server.cast/2.

Link to this section Summary

Link to this section Functions

Callback implementation for RaftedValue.Communication.cast/2.

Callback implementation for RaftedValue.Communication.reply/2.

Link to this function send_event(fsm_ref, event) View Source