Handler

class Handler[In, Out](var self: Handler[In, Out]) extends Handler[In, Out]
trait Handler[In, Out]
class Object
trait Matchable
class Any

Value members

Concrete methods

def finish(out: HandlerWrite[Out]): Unit
def push(in: In, out: HandlerWrite[Out]): Signal
override def toString: String
Definition Classes
Any

Inherited methods

Wraps this handler as a "top level" handler, which will inject a SpacTraceElement (representing the current input or the "EOF" signal) to any exception is thrown by this handler when calling its step or finish methods.

Wraps this handler as a "top level" handler, which will inject a SpacTraceElement (representing the current input or the "EOF" signal) to any exception is thrown by this handler when calling its step or finish methods.

Used internally by Transformers transform and toPipe methods.

Inherited from:
Handler
def bubbleUp(err: Throwable): Nothing

In response to an error thrown and caught from a downstream consumer, this handler may modify the exception on its way back upstream. Used by the "spac frame" transformer.

In response to an error thrown and caught from a downstream consumer, this handler may modify the exception on its way back upstream. Used by the "spac frame" transformer.

Value parameters:
err

An error thrown by some downstream handler

Returns:

Nothing, because this method must always throw something

Inherited from:
Handler
def pushMany(ins: Iterator[In], out: HandlerWrite[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:
ins

An iterator which produces input values to push into this handler

out

The downstream receiver of output values

Returns:

A "signal" indicating whether this handler wants to continue receiving inputs afterward

Inherited from:
Handler

Concrete fields

var self: Handler[In, Out]