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 java.lang.Object
implements Callback<T>
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.ably.lib.types.Callback

    Callback.Map<T,​U>
  • Constructor Summary

    Constructors 
    Constructor Description
    Map​(Callback<U> callback)  
  • Method Summary

    Modifier and Type Method Description
    abstract U map​(T result)  
    void onError​(ErrorInfo reason)
    Called when the associated operation completes with an error.
    void onSuccess​(T result)
    Called when the associated operation completes successfully,

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.