This is only used by Topics.FetchStream
which is
deprecated. This will be removed in a future release.
@Deprecated 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), onDiscard
will be called. One of
onClose
or onDiscard
will be the
final callback made for a call context.
Modifier and Type | Interface and Description |
---|---|
static class |
Stream.Default
Deprecated.
Abstract default callback.
|
Modifier and Type | Method and Description |
---|---|
void |
onClose()
Deprecated.
Called to notify that a stream context was closed normally.
|
Copyright © 2020 Push Technology Ltd. All Rights Reserved.