Interface Dispatchable

  • All Known Subinterfaces:
    DispatchDeferrable
    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 interface Dispatchable
    • Method Detail

      • isDeferred

        default boolean isDeferred​(Dispatcher dispatcher)
        Allows to defer dispatching an item even if it is pending.

        The default implementation returns false.

        Parameters:
        dispatcher - used by subclasses
      • notifyFinalFailure

        default void notifyFinalFailure​(Dispatcher dispatcher,
                                        Exception cause)
        The default implementation does nothing.
        Parameters:
        dispatcher - used by subclasses
        cause - used by subclasses