Module riak_core_handoff_sender_sup

Behaviours: supervisor.

Data Types

ho_type()

ho_type() = ownership | hinted | repair | resize

Function Index

start_link/0
start_sender/5Start the handoff process for the module (Module), partition (Partition), and vnode (VNode) from the local node to the target node (TargetNode) with options Opts.

Function Details

start_link/0

start_link() -> any()

start_sender/5

start_sender(Type::ho_type(), Module::atom(), TargetNode::term(), VNode::pid(), Opts::[{atom(), term()}]) -> {ok, pid()}

Start the handoff process for the module (Module), partition (Partition), and vnode (VNode) from the local node to the target node (TargetNode) with options Opts.

Options: * src_partition - required. the integer index of the source vnode * target_partition - required. the integer index of the target vnode * filter - optional. an arity one function that takes the key and returns a boolean. If false, the key is not sent * unsent_fun - optional. an arity 2 function that takes a key that was not sent (based on filter) and an accumulator. This function is called for each unsent key. * unsent_acc0 - optional. The intial accumulator value passed to unsent_fun for the first unsent key


Generated by EDoc