Interface EventDeliveryExceptionHandler

    • Method Detail

      • handles

        boolean handles​(java.lang.Throwable t)
        Returns true if this handles the throwable
        Parameters:
        t - the throwable
        Returns:
        true if handled, false otherwise
      • makeState

        EventDeliveryExceptionHandlerState makeState​(java.lang.Throwable t)
        create the state used for handling an exception
        Parameters:
        t - the throwable
        Returns:
        the state used by the handler
      • handle

        void handle​(EventDeliveryExceptionHandlerState state,
                    java.lang.Throwable t,
                    java.lang.Runnable retry,
                    java.util.function.Consumer<java.lang.Throwable> fail,
                    java.lang.Runnable ignore)
        handle an exception by either (asynchronously) retrying or failing
        Parameters:
        state - the state
        t - the throwable
        retry - invoked asynchronously to retry
        fail - invoked asynchronously to fail
        ignore - invoked to ignore the exception