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 ContextCallback<C>
This interface and its extensions are alternatives to the Callback
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 Callback
and ContextCallback
behave
identically.
Callback
Modifier and Type | Interface and Description |
---|---|
static class |
ContextCallback.Default<C>
Deprecated.
Abstract default callback.
|
Modifier and Type | Method and Description |
---|---|
void |
onDiscard(C context)
Deprecated.
Notification that a call context was closed prematurely, typically due to
a timeout or the session being closed.
|
void onDiscard(C context)
context
- the context object supplied when making the call. May be
null
.Copyright © 2024 DiffusionData Ltd. All Rights Reserved.