Mixin for handlers with relatively-complex isFinished
methods.
A composition of a number of "inner" handlers which delegates each event to each (unfinished) inner handler, then reforms a final result based on the final results of each of the inner handlers.
Handler for Splitter.consecutiveMatches
Handler that will produce the result
in response to any input or end event,
and will re-throw any error that gets passed.
HandlerMiddleman that runs a consumer on all inputs until that consumer returns a result, which will be sent downstream.
Part of the Splitter
implementation responsible for creating an In => P => Out
chain for a downstream handler.
A context-sensitive Handler creates a "middleman" handler as a proxy to the downstream handler, for each new context that is entered.
Handler that tracks entry and exit from a stack-based context, notifying a downstream handler.
HandlerMiddleman that acts as a transformer, but guards against the EOF signal being sent via the transformer.
Transformer handler that will ignore all inputs, instead passing the given error
exactly once to the downstream handler.
Wrapper for a downstream
handler which will enforce an expectation of
a specific sequence of events (as expressed by expectations
).
Handler that multiplexes inputs to both a downstream
and an interrupter
handler.
Mapping handler which applies a transformation function to the results coming from the wrapped handler.
Mapping handler which applies a transformation function to inputs before passing them to the downstream handler.
A handler for a collection of transformers that will be run in parallel.
Wraps an inner
handler's methods with a try
, wrapping the output type with Try[_]
A handler that starts with some initial state, and each for each input the
current state is forwarded to the downstream handler, and the state is updated
according to the provided function f
.
Handler that forwards inputs to a first handler until that handler yields a result, at which point the result is used to create a second handler, to which all further inputs are forwarded until it yields a result.
Base implementation for Handlers that transform and/or filter inputs before passing them along to some downstream handler.
Unwraps an inner
handler whose output type is a Try
, so that any Failure
returned from
the inner handler will have its underlying error thrown.
Handler that delegates to an inner
handler, converting result-typed inputs
to the corresponding handleInput
or handleError
call.
Handler that upgrades events from the upstream to Results
before passing them
to the inner handler.