View Source partisan_plumtree_backend (partisan v5.0.0-beta.13)
Link to this section Summary
Functions
Returns from the broadcast message the identifier and the payload.
Anti-entropy mechanism.
Given a message identifier and a clock, return a given message.
Use the clock on the object to determine if this message is stale or not.
Perform a merge of an incoming object with an object in the local datastore.
Same as start_link([]).
Start and link to calling process.
Link to this section Types
Link to this section Functions
-spec broadcast_data(broadcast_message()) -> {broadcast_id(), broadcast_payload()}.
-spec exchange(node()) -> {ok, pid()}.
-spec graft(broadcast_id()) -> stale | {ok, broadcast_payload()} | {error, term()}.
-spec is_stale(broadcast_id()) -> boolean().
-spec merge(broadcast_id(), broadcast_payload()) -> boolean().
-spec start_link() -> {ok, pid()} | ignore | {error, term()}.
-spec start_link(list()) -> {ok, pid()} | ignore | {error, term()}.