Runbox.Runtime.Simple.TemplateCarrier (runbox v26.0.0)

View Source

Template carrier for Simple scenario.

GenStage handling Simple scenario template. It carries the state of the template and handles init and handle_message callbacks. It expects to consume messages from input streams and produces output-stream-ready events.

Summary

Types

Stage output (input for the next stage) is either a tick message or an output action

Functions

Returns component name.

Returns state entity of a running template carrier.

Types

origin()

@type origin() :: Runbox.Message.t() | :init

stage_outputs()

@type stage_outputs() :: [Runbox.Message.t() | Runbox.Runtime.OutputAction.t()]

Stage output (input for the next stage) is either a tick message or an output action

state_entity()

timestamp()

@type timestamp() :: non_neg_integer()

Functions

component_name()

Returns component name.

get_state_entity(pid)

Returns state entity of a running template carrier.

start_link(args, runbox_ctx, start_ctx)

Starts the GenStage.