C
- context object type
This is only used by Topics.FetchContextStream
which is
deprecated. This will be removed in a future release.
@Deprecated public interface ContextStream<C> extends ContextCallback<C>
ContextCallback
that allows many callbacks for each
call context.
This interface and its extensions are alternatives to the Stream
interface hierarchy that allow the application to associate an arbitrary
context object with each call. Any suitable application object can be
provided as the context. It will be passed on to the corresponding callback
methods, allowing requests and responses to be correlated. The context object
is optional (it may be null
).
In all other respects Stream
and ContextStream
behave
identically.
Modifier and Type | Interface and Description |
---|---|
static class |
ContextStream.Default<C>
Deprecated.
Abstract default callback.
|
Modifier and Type | Method and Description |
---|---|
void |
onClose(C context)
Deprecated.
Called to notify that the stream context was closed normally.
|
onDiscard
void onClose(C context)
context
- the context object the application supplied when making
the call; may be null
Copyright © 2020 Push Technology Ltd. All Rights Reserved.