Package 

Class Callback.Map

  • All Implemented Interfaces:
    io.ably.lib.types.Callback

    
    public abstract class Callback.Map<T, U>
     implements Callback<T>
                        
    • Method Summary

      Modifier and Type Method Description
      abstract U map(T result)
      void onSuccess(T result) Called when the associated operation completes successfully,
      void onError(ErrorInfo reason) Called when the associated operation completes with an error.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Callback.Map

        Callback.Map(Callback<U> callback)
    • Method Detail

      • map

         abstract U map(T result)
      • onSuccess

         void onSuccess(T result)

        Called when the associated operation completes successfully,

      • onError

         void onError(ErrorInfo reason)

        Called when the associated operation completes with an error.

        Parameters:
        reason - information about the error.