partisan_plumtree_broadcast_handler behaviour (partisan v5.0.2)
View SourceThis module defines a behaviour to customise the implementation for the operations performed by the partisan_plumtree_broadcast
server.
Callbacks
The behaviour defines the following callbacks:
broadcast_data/1
- must return a two-tuple of message id and payload from a given broadcast. Where the broadcasted message is application-specific.broadcast_channel/1
(optional) - Must return the channel to be used when broadcasting data associate with this handler. Seepartisan_plumtree_broadcast:broadcast/2
.