hyparview v0.1.4 Hyparview.Messages.JoinFailed View Source

A Message for JOIN failed

Link to this section Summary

Functions

Handler function for JoinFailed received node. If the Join request Failed, Join receiver send back a JoinFailed message that includes its active view to the Join sender. When the JoinFailed received, Join sender sends a Join request again to a node that chosen from the passive view, except the Failed node and Bootstrap nodes

Link to this section Types

Link to this type t() View Source
t() :: %Hyparview.Messages.JoinFailed{
  sender: Node.t(),
  view: Hyparview.View.t()
}

Link to this section Functions

Link to this function handle(join_failed, view) View Source
handle(t(), Hyparview.View.t()) :: reference()

Handler function for JoinFailed received node. If the Join request Failed, Join receiver send back a JoinFailed message that includes its active view to the Join sender. When the JoinFailed received, Join sender sends a Join request again to a node that chosen from the passive view, except the Failed node and Bootstrap nodes.

_time_ref = JoinFailed.handle(join_failed, state.view)
{:noreply, state}