tuweni / org.apache.tuweni.scuttlebutt.rpc.mux / ScuttlebuttStreamHandler

ScuttlebuttStreamHandler

interface ScuttlebuttStreamHandler (source)

Handles incoming items from a result stream

Functions

onMessage

abstract fun onMessage(message: RPCResponse): Unit

Handles a new message from the result stream.

onStreamEnd

abstract fun onStreamEnd(): Unit

Invoked when the stream has been closed.

onStreamError

abstract fun onStreamError(ex: Exception): Unit

Invoked when there is an error in the stream.