Class RetryRejectedExecutionFailureHandler

    • Constructor Detail

      • RetryRejectedExecutionFailureHandler

        public RetryRejectedExecutionFailureHandler()
        Deprecated.
    • Method Detail

      • onFailure

        public void onFailure​(org.elasticsearch.action.ActionRequest action,
                              Throwable failure,
                              int restStatusCode,
                              RequestIndexer indexer)
                       throws Throwable
        Deprecated.
        Description copied from interface: ActionRequestFailureHandler
        Handle a failed ActionRequest.
        Specified by:
        onFailure in interface ActionRequestFailureHandler
        Parameters:
        action - the ActionRequest that failed due to the failure
        failure - the cause of failure
        restStatusCode - the REST status code of the failure (-1 if none can be retrieved)
        indexer - request indexer to re-add the failed action, if intended to do so
        Throws:
        Throwable - if the sink should fail on this failure, the implementation should rethrow the exception or a custom one