DiffusionTM Java API 6.5.2
C- context object type
public interface ContextCallback<C>
This interface and its extensions are alternatives to the
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
|Modifier and Type||Interface and Description|
Abstract default callback.
void onError(C context, ErrorReason errorReason)
onErroris called include the session being closed, a communication timeout, or a problem with the provided parameters. No further calls will be made to this callback for the call context.
context- the context object supplied when making the call. May be
errorReason- a value representing the error; this can be one of constants defined in
ErrorReason, or a feature-specific reason
Copyright © 2020 Push Technology Ltd. All Rights Reserved.