Interface Callback<T>

All Known Implementing Classes:
Callback.Map, CompletionListener.ToCallback

public interface Callback<T>
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 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when the associated operation completes with an error.
    void
    onSuccess(T result)
    Called when the associated operation completes successfully,
  • Method Details

    • onSuccess

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