BoundHandler

trait BoundHandler[-In] extends HandlerWrite[In]

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
trait HandlerWrite[In]
class Object
trait Matchable
class Any
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 finish(): Unit

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

def push(out: In): 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

Inherited from:
HandlerWrite
def pushMany(outs: Iterator[In]): 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

Inherited from:
HandlerWrite