DistributedSupervisor.Listener behaviour (distributed_supervisor v0.2.0)

View Source

The implementation of this behaviour might be passed to DistributedSupervisor.start_link/1 to receive notifications about processes state.

Summary

Callbacks

on_process_start(name, id, pid)

(optional)
@callback on_process_start(
  name :: DistributedSupervisor.name(),
  id :: DistributedSupervisor.id(),
  pid :: pid()
) :: :ok

on_process_stop(name, id, pids)

(optional)
@callback on_process_stop(
  name :: DistributedSupervisor.name(),
  id :: DistributedSupervisor.id(),
  pids :: [pid()]
) :: :ok