interface StreamHandler<T : Any!>
(source)
A handler consuming a stream.
onMessage |
Handles a new item from the result stream. abstract fun onMessage(item: T): Unit |
onStreamEnd |
Invoked when the stream has been closed. abstract fun onStreamEnd(): Unit |
onStreamError |
Invoked when there is an error in the stream. abstract fun onStreamError(ex: Exception!): Unit |