Interface CompletionListener

All Known Implementing Classes:
CompletionListener.FromCallback, CompletionListener.Multicaster

public interface CompletionListener
An interface allowing a client to be notified of the outcome of an asynchronous operation.
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Interface Description
    static class  CompletionListener.FromCallback  
    static class  CompletionListener.Multicaster
    A Multicaster instance is used in the Ably library to manage a list of client listeners against certain operations.
    static class  CompletionListener.ToCallback  
  • Method Summary

    Modifier and Type Method Description
    void onError​(ErrorInfo reason)
    Called when the associated operation completes with an error.
    void onSuccess()
    Called when the associated operation completes successfully.
  • Method Details

    • onSuccess

      void onSuccess()
      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.