Interface AuditableRestAction<T>

    • Method Detail

      • setCheck

        @Nonnull
        AuditableRestAction<T> setCheck​(@Nullable
                                        BooleanSupplier checks)
        Sets the last-second checks before finally executing the http request in the queue.
        If the provided supplier evaluates to false or throws an exception this will not be finished. When an exception is thrown from the supplier it will be provided to the failure callback.
        Specified by:
        setCheck in interface RestAction<T>
        Parameters:
        checks - The checks to run before executing the request, or null to run no checks
        Returns:
        The current RestAction for chaining convenience