View Source partisan_pluggable_peer_service_manager (partisan v5.0.0-beta.13)
Link to this section Summary
Functions
Cast a message to a remote gen_server.
Cast a message to a remote gen_server.
Decode state.
Gensym support for forwarding.
Gensym support for forwarding.
Forward message to registered process on the remote side.
Return local node's view of cluster membership.
Inject a partition.
Attempt to join a remote node.
Leave the cluster.
Remove another node from the cluster.
Returns true if node
Node
is a member in the membership list. Otherwise returns false
.Return membership list.
Return membership list.
Return partisan:node_spec().
Trigger function on connection close for a given node.
Function
is a function object taking zero or a single argument, where the argument is the Node name.Trigger function on connection open for a given node.
Function
is a function object taking zero or a single argument, where the argument is the Node name.Return partitions.
Receive message from a remote manager.
Reserve a slot for the particular tag.
Resolve a partition.
Send message to a remote peer service manager.
Same as start_link([]).
Attempt to join a remote node.
Update membership.
Link to this section Types
-type actor() :: binary().
-type channel() :: atom().
-type from() :: {pid(), atom()}.
-type interposition_arg() :: {receive_message, node(), any()}.
-type interposition_fun() :: fun((interposition_arg()) -> interposition_arg()).
-type listen_addr() :: #{ip => inet:ip_address(), port => non_neg_integer()}.
-type message() :: term().
-type node_spec() :: #{name => node(), listen_addrs => [listen_addr()], channels => [channel()], parallelism => non_neg_integer()}.
-type on_change_function() :: fun(() -> ok) | fun((node()) -> ok).
-type pre_post_interposition_fun() :: fun((interposition_arg()) -> ok).
-type t() :: #state{}.
Link to this section Functions
-spec cast_message(Term :: partisan_remote_ref:p() | partisan_remote_ref:n() | pid(), Message :: message()) -> ok.
-spec init([]) -> {ok, t()}.
Node
is a member in the membership list. Otherwise returns false
.
Function
is a function object taking zero or a single argument, where the argument is the Node name.
Function
is a function object taking zero or a single argument, where the argument is the Node name.
-spec start_link() -> {ok, pid()} | ignore | {error, term()}.