C
- context object typeMethods that use contextual callbacks are deprecated and will be removed in a future release. Use CompletableFuture variant instead.
@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.
Notification that a call context was closed normally.
|
onError
void onClose(C context)
context
- the context object the application supplied when making
the call; may be null
Copyright © 2024 DiffusionData Ltd. All Rights Reserved.