ResultHandler

trait ResultHandler[R] extends EventHandler

An EventHandler with a measured result.

Type Params
R

The type of the result.

class Object
trait Matchable
class Any

Value members

Abstract methods

def result: R

The result of the handler.

The result of the handler.

Returns

The result of the handler.

Inherited methods

def onDone(publisher: Publisher): Unit

Handles the end of a stream.

Handles the end of a stream.

Value Params
publisher

The Publisher that ended the stream.

Inherited from
EventHandler
def onEvent(event: Event): Unit

Handles an Event in the stream.

Handles an Event in the stream.

Value Params
event

The Event to handle.

Inherited from
EventHandler
def onFail(e: Throwable, publisher: Publisher): Unit

Handles an error in the stream.

Handles an error in the stream.

Value Params
e

The throwable error that occurred.

publisher

The Publisher that threw the error.

Inherited from
EventHandler
def onInit(publisher: Publisher): Unit

Handles the initialisation of a new event stream.

Handles the initialisation of a new event stream.

Value Params
publisher

The Publisher that started the stream.

Inherited from
EventHandler

Inherited fields

val id: UUID

A unique identifier for the handler.

A unique identifier for the handler.

Returns

a unique identifier

Inherited from
EventHandler