Class OnActionErrorOptions<T>

    • Constructor Detail

      • OnActionErrorOptions

        public OnActionErrorOptions​(IndexAction<T> action)
        Creates a new OnActionErrorOptions object.
        Parameters:
        action - Action that failed with an error.
    • Method Detail

      • getAction

        public IndexAction<T> getAction()
        Gets the action.
        Returns:
        The action.
      • setThrowable

        public OnActionErrorOptions<T> setThrowable​(Throwable throwable)
        Sets the throwable that caused the action failed.
        Parameters:
        throwable - Throwable that caused the action to fail.
        Returns:
        The updated OnActionErrorOptions object.
      • getThrowable

        public Throwable getThrowable()
        Gets the throwable that caused the action to fail.
        Returns:
        The throwable that caused the action to fail.
      • setIndexingResult

        public OnActionErrorOptions<T> setIndexingResult​(IndexingResult indexingResult)
        Sets the indexing result of the action with a non-retryable status code.
        Parameters:
        indexingResult - The indexing result for the action.
        Returns:
        The updated OnActionErrorOptions object.
      • getIndexingResult

        public IndexingResult getIndexingResult()
        Gets the indexing result of the action.
        Returns:
        The indexing result of the action.