@Internal public class IgnoringFailureHandler extends Object implements ActionRequestFailureHandler
ActionRequest
.Constructor and Description |
---|
IgnoringFailureHandler() |
Modifier and Type | Method and Description |
---|---|
void |
onFailure(org.elasticsearch.action.ActionRequest action,
Throwable failure,
int restStatusCode,
RequestIndexer indexer)
Handle a failed
ActionRequest . |
public void onFailure(org.elasticsearch.action.ActionRequest action, Throwable failure, int restStatusCode, RequestIndexer indexer)
ActionRequestFailureHandler
ActionRequest
.onFailure
in interface ActionRequestFailureHandler
action
- the ActionRequest
that failed due to the failurefailure
- the cause of failurerestStatusCode
- 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 soCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.