Interface Listener<T>

All Known Implementing Classes:
CompositeFutureImpl, PromiseImpl

public interface Listener<T>
Internal listener that signals success or failure when a future completes.
Author:
Julien Viet
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Signal the failure
    void
    onSuccess(T value)
    Signal the success.
  • Method Details

    • onSuccess

      void onSuccess(T value)
      Signal the success.
      Parameters:
      value - the value
    • onFailure

      void onFailure(Throwable failure)
      Signal the failure
      Parameters:
      failure - the failure