public class NoOpFailureHandler extends Object implements ActionRequestFailureHandler
ActionRequestFailureHandler
that simply fails the sink on any failures.Constructor and Description |
---|
NoOpFailureHandler() |
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) throws Throwable
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 soThrowable
- if the sink should fail on this failure, the implementation should rethrow
the exception or a custom oneCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.