A Handler
which has been bound to some "downstream" receiver of outputs,
so that the push
and finish
methods will delegate to that downstream rather than
requiring a downstream receiver to be passed as a method parameter.
- Type parameters:
- In
The handler's input type
- Companion:
- object
Value members
Abstract methods
In response to the end of the stream of incoming values, this handler may output any number of
final output values to its bound "downstream" receiver.
The expectation is that a Handler's finish
method will only ever be called once before that
Handler is discarded, with the exception of Stateless
Transformers, which act as their own
Handlers and will be reused.
In response to the end of the stream of incoming values, this handler may output any number of
final output values to its bound "downstream" receiver.
The expectation is that a Handler's finish
method will only ever be called once before that
Handler is discarded, with the exception of Stateless
Transformers, which act as their own
Handlers and will be reused.
Inherited methods
Handle a single output from the upstream handler, signalling whether or not that upstream should continue emitting values.
Handle a single output from the upstream handler, signalling whether or not that upstream should continue emitting values.
- Value parameters:
- out
The value from the upstream handler
- Returns:
A "signal" indicating whether this handler wants to continue receiving inputs afterward
- Inherited from:
- HandlerWrite
Convenience for calling push
multiple times, aborting early
if the signal becomes Stop
in response to any one push.
Convenience for calling push
multiple times, aborting early
if the signal becomes Stop
in response to any one push.
- Value parameters:
- outs
An iterator of outputs from the upstream handler, to be pushed into this handler
- Returns:
A "signal" indicating whether this handler wants to continue receiving inputs afterward
- Inherited from:
- HandlerWrite