Handler

class Handler extends Handler[JsonEvent, JsonEvent]
trait Handler[JsonEvent, JsonEvent]
class Object
trait Matchable
class Any

Value members

Concrete methods

def finish(out: HandlerWrite[JsonEvent]): Unit
def push(in: JsonEvent, out: HandlerWrite[JsonEvent]): Signal

Inherited methods

def asTopLevelHandler(caller: SpacTraceElement): Handler[JsonEvent, JsonEvent]

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 Params
err

An error thrown by some downstream handler

Returns

Nothing, because this method must always throw something

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