Commanded v0.18.1 Commanded.PubSub behaviour View Source
Pub/sub behaviour for use by Commanded to subcribe to and broadcast messages.
Link to this section Summary
Functions
Return an optional supervisor spec for pub/sub.
List tracked PIDs for a given topic.
Get the configured pub/sub adapter.
Track the current process under the given topic
, uniquely identified by
key
.
Callbacks
Broadcasts message on given topic.
Broadcasts message on given topic.
Return an optional supervisor spec for pub/sub.
List tracked PIDs for a given topic.
Subscribes the caller to the PubSub adapter's topic.
Subscribes the caller to the PubSub adapter's topic.
Track the current process under the given topic
, uniquely identified by
key
.
Link to this section Functions
broadcast(topic, message) View Source
child_spec()
View Source
child_spec() :: [:supervisor.child_spec()]
child_spec() :: [:supervisor.child_spec()]
Return an optional supervisor spec for pub/sub.
list(topic) View Source
List tracked PIDs for a given topic.
pubsub_provider()
View Source
pubsub_provider() :: module()
pubsub_provider() :: module()
Get the configured pub/sub adapter.
Defaults to a local pub/sub, restricted to running on a single node.
subscribe(topic) View Source
track(topic, key) View Source
Track the current process under the given topic
, uniquely identified by
key
.
Link to this section Callbacks
broadcast(arg1, term) View Source
Broadcasts message on given topic.
broadcast(arg1, term) View Source
Broadcasts message on given topic.
child_spec()
View Source
child_spec() :: [:supervisor.child_spec()]
child_spec() :: [:supervisor.child_spec()]
Return an optional supervisor spec for pub/sub.
list(arg1) View Source
List tracked PIDs for a given topic.
subscribe(arg1) View Source
Subscribes the caller to the PubSub adapter's topic.
subscribe(arg1) View Source
Subscribes the caller to the PubSub adapter's topic.
track(arg1, term) View Source
Track the current process under the given topic
, uniquely identified by
key
.