Class Callback.Map<T,U>

java.lang.Object
io.ably.lib.types.Callback.Map<T,U>
All Implemented Interfaces:
Callback<T>
Enclosing interface:
Callback<T>

public abstract static class Callback.Map<T,U> extends Object implements Callback<T>
  • Constructor Details

  • Method Details

    • map

      public abstract U map(T result)
    • onSuccess

      public void onSuccess(T result)
      Description copied from interface: Callback
      Called when the associated operation completes successfully,
      Specified by:
      onSuccess in interface Callback<T>
    • onError

      public void onError(ErrorInfo reason)
      Description copied from interface: Callback
      Called when the associated operation completes with an error.
      Specified by:
      onError in interface Callback<T>
      Parameters:
      reason - information about the error.