public interface Stream extends Callback
Callback
that allows many callbacks for each call
context.
The server may return zero, one, or many results for a call; each result will
be supplied to one of the callback methods. When no further results are
expected for the call context, onClose()
will be called. If a
context is closed prematurely (for example, due to the session being closed),
Callback.onError(ErrorReason)
will be called. One of onClose
or
onError
will be the final callback made for a call context.
Modifier and Type | Interface and Description |
---|---|
static class |
Stream.Default
Abstract default callback.
|
Modifier and Type | Method and Description |
---|---|
void |
onClose()
Notification that a stream context was closed normally.
|
Copyright © 2024 DiffusionData Ltd. All Rights Reserved.