Package 

Interface Callback


  • 
    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 Class Description
      public abstract class Callback.Map
    • Method Summary

      Modifier and Type Method Description
      abstract void onSuccess(T result) Called when the associated operation completes successfully,
      abstract void onError(ErrorInfo reason) Called when the associated operation completes with an error.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onSuccess

         abstract void onSuccess(T result)

        Called when the associated operation completes successfully,

      • onError

         abstract void onError(ErrorInfo reason)

        Called when the associated operation completes with an error.

        Parameters:
        reason - information about the error.