skycluster v1.1.2 Cluster.Events

This module implements a publish/subscribe mechanism for cluster events.

Summary

Functions

init(parent)
publish(event)
publish(event :: term) :: :ok

Publishes an event to all subscribers.

Published messages are delivered via send/2, so if subscribing a gen_* process, you will receive them in the handle_info/2 callback.

start_link()
subscribe(pid)
subscribe(pid) :: :ok

Subscribes a process (by pid) to cluster events.

system_code_change(misc, module, old, extra)
system_continue(parent, debug, state)
system_get_state(state)
system_replace_state(state_fun, state)
system_terminate(reason, arg2, debug, state)
unsubscribe(pid)
unsubscribe(pid) :: :ok

Unsubscribes a process (by pid) from cluster events.