Class Callback.Default
java.lang.Object
com.pushtechnology.diffusion.client.callbacks.Callback.Default
- All Implemented Interfaces:
Callback
- Direct Known Subclasses:
Stream.Default
- Enclosing interface:
- Callback
Abstract default callback.
This simply logs onError calls at debug level. This should be overridden to perform more specific error handling.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.pushtechnology.diffusion.client.callbacks.Callback
Callback.Default
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
onError
(ErrorReason errorReason) Notification of a contextual error related to this callback.
-
Constructor Details
-
Default
public Default()
-
-
Method Details
-
onError
Description copied from interface:Callback
Notification of a contextual error related to this callback. This is analogous to an exception being raised. Situations in whichonError
is 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.- Specified by:
onError
in interfaceCallback
- Parameters:
errorReason
- a value representing the error; this can be one of constants defined inErrorReason
, or a feature-specific reason
-