Interface Executor.Reject

Enclosing interface:
Executor<T>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface Executor.Reject
Functional interface for rejecting the Promise.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Method to call for rejecting the Promise without a reason.
    void
    onInvoke(Object reason)
    Method to call for rejecting the Promise with given reason.
  • Method Details

    • onInvoke

      default void onInvoke()
      Method to call for rejecting the Promise without a reason.
    • onInvoke

      void onInvoke(Object reason)
      Method to call for rejecting the Promise with given reason.
      Parameters:
      reason - The reason for rejecting.