View Source GenericExecutor behaviour (reactive_commons v0.8.2)
Implements generic behaviour for message executors
Link to this section Summary
Callbacks
Decode message payload from MessageToHandle.
Extract handler function path (name) from the message.
It's called when handler return (optional).
Link to this section Types
Link to this section Callbacks
@callback decode(MessageToHandle.t()) :: parsed_payload()
Decode message payload from MessageToHandle.
@callback get_handler_path(MessageToHandle.t(), parsed_payload()) :: String.t()
Extract handler function path (name) from the message.
@callback on_post_process(handler_response(), MessageToHandle.t()) :: any()
It's called when handler return (optional).