Class IgnoringFailureHandler

    • Constructor Detail

      • IgnoringFailureHandler

        public IgnoringFailureHandler()
    • Method Detail

      • onFailure

        public void onFailure​(org.elasticsearch.action.ActionRequest action,
                              Throwable failure,
                              int restStatusCode,
                              RequestIndexer indexer)
        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