View Source partisan_full_membership_strategy (partisan v5.0.0-beta.15)
Link to this section Summary
Functions
Handling incoming protocol message.
Initialize the strategy state.
When a node is connected, return the state, membership and outgoing message queue to be transmitted.
Leave a node from the cluster.
Periodic protocol maintenance.
Link to this section Types
-type membership_list() :: partisan_membership_strategy:membership_list().
-type outgoing_messages() :: partisan_membership_strategy:outgoing_messages().
Link to this section Functions
-spec handle_message(partisan:message(), State :: any()) -> {ok, membership_list(), outgoing_messages(), NewState :: any()}.
-spec init(partisan:actor()) -> {ok, membership_list(), State :: any()}.
-spec join(partisan:node_spec(), PeerState :: any(), State :: any()) -> {ok, membership_list(), outgoing_messages(), NewState :: any()}.
-spec leave(partisan:node_spec(), State :: any()) -> {ok, membership_list(), outgoing_messages(), NewState :: any()}.
-spec periodic(State :: any()) -> {ok, membership_list(), outgoing_messages(), NewState :: any()}.
-spec prune([partisan:node_spec()], State :: any()) -> {ok, membership_list(), NewState :: any()}.