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 
     
    static class 
    A Multicaster instance is used in the Ably library to manage a list of client listeners against certain operations.
    static class 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when the associated operation completes with an error.
    void
    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.