HandlerWrite

trait HandlerWrite[-Out]

Represents the "downstream" of a handler. Whenever a handler is told to push or finish, it uses a HandlerWrite to receive its output. A HandlerWrite could be an object that collects the values to a buffer which you can manually inspect later (see BoundHandler.ToBuilder), or a wrapper around some secondary Handler i.e. the next transformation step.

Type parameters:
Out

The output event type from the upstream handler, which acts as the input to this receiver

class Object
trait Matchable
class Any
trait BoundHandler[In]
class ToBuilder[A, Out]
trait HandlerBind[In, Out]
class Dynamic[In, Out]
class Static[In, Out]
class ParserProxy[In, Out]

Value members

Abstract methods

def push(out: Out): Signal

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

Concrete methods

def pushMany(outs: Iterator[Out]): Signal

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