Class CompletionListener.ToCallback

java.lang.Object
io.ably.lib.realtime.CompletionListener.ToCallback
All Implemented Interfaces:
Callback<java.lang.Void>
Enclosing interface:
CompletionListener

public static class CompletionListener.ToCallback
extends java.lang.Object
implements Callback<java.lang.Void>
  • Nested Class Summary

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

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

    Constructors 
    Constructor Description
    ToCallback​(CompletionListener listener)  
  • Method Summary

    Modifier and Type Method Description
    void onError​(ErrorInfo reason)
    Called when the associated operation completes with an error.
    void onSuccess​(java.lang.Void v)
    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

    • onSuccess

      public void onSuccess​(java.lang.Void v)
      Description copied from interface: Callback
      Called when the associated operation completes successfully,
      Specified by:
      onSuccess in interface Callback<java.lang.Void>
    • 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<java.lang.Void>
      Parameters:
      reason - information about the error.