Commands reaching this pipe pair are transformed into a sequence of commands for the next or events for the previous stage.
Commands reaching this pipe pair are transformed into a sequence of commands for the next or events for the previous stage.
Throwing exceptions within this method will abort processing of the whole pipeline which this pipe pair is part of.
the incoming command
an Iterable of elements which are either events or commands
Events reaching this pipe pair are transformed into a sequence of commands for the next or events for the previous stage.
Events reaching this pipe pair are transformed into a sequence of commands for the next or events for the previous stage.
Throwing exceptions within this method will abort processing of the whole pipeline which this pipe pair is part of.
the incoming event
an Iterable of elements which are either events or commands
INTERNAL API: Dealias a possibly optimized return value such that it can be safely used; this is never needed when only using public API.
INTERNAL API: Dealias a possibly optimized return value such that it can be safely used; this is never needed when only using public API.
Helper method for wrapping a command which shall be emitted.
Helper method for wrapping a command which shall be emitted.
Helper method for wrapping an event which shall be emitted.
Helper method for wrapping an event which shall be emitted.
Management commands are sent to all stages in a broadcast fashion, conceptually in parallel (but not actually executing a stage reentrantly in case of events or commands being generated in response to a management command).
Management commands are sent to all stages in a broadcast fashion, conceptually in parallel (but not actually executing a stage reentrantly in case of events or commands being generated in response to a management command).
Wrap a single command for efficient return to the pipeline’s machinery.
Wrap a single command for efficient return to the pipeline’s machinery.
This method avoids allocating a scala.util.Right
and an java.lang.Iterable
by reusing
one such instance within the AbstractPipePair, hence it can be used ONLY ONCE by
each pipeline stage. Prototypic and safe usage looks like this:
final MyResult result = ... ; return singleCommand(result);
PipelineContext#singleCommand
Wrap a single event for efficient return to the pipeline’s machinery.
Wrap a single event for efficient return to the pipeline’s machinery.
This method avoids allocating a scala.util.Left
and an java.lang.Iterable
by reusing
one such instance within the AbstractPipePair, hence it can be used ONLY ONCE by
each pipeline stage. Prototypic and safe usage looks like this:
final MyResult result = ... ; return singleEvent(result);
PipelineContext#singleEvent
A convenience type for expressing a
AbstractPipePair
which has the same types for commands and events.