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

public abstract static class Callback.Default extends Object implements Callback
Abstract default callback.

This simply logs onError calls at debug level. This should be overridden to perform more specific error handling.

  • Constructor Details

    • Default

      public Default()
  • Method Details

    • onError

      public void onError(ErrorReason errorReason)
      Description copied from interface: Callback
      Notification of a contextual error related to this callback. This is analogous to an exception being raised. Situations in which onError 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 interface Callback
      Parameters:
      errorReason - a value representing the error; this can be one of constants defined in ErrorReason, or a feature-specific reason