Class IgnoringFailureHandler
- java.lang.Object
-
- org.apache.flink.streaming.connectors.elasticsearch.util.IgnoringFailureHandler
-
- All Implemented Interfaces:
Serializable,ActionRequestFailureHandler
@Internal public class IgnoringFailureHandler extends Object implements ActionRequestFailureHandler
Ignores all kinds of failures and drops the affectedActionRequest.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IgnoringFailureHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonFailure(org.elasticsearch.action.ActionRequest action, Throwable failure, int restStatusCode, RequestIndexer indexer)Handle a failedActionRequest.
-
-
-
Method Detail
-
onFailure
public void onFailure(org.elasticsearch.action.ActionRequest action, Throwable failure, int restStatusCode, RequestIndexer indexer)Description copied from interface:ActionRequestFailureHandlerHandle a failedActionRequest.- Specified by:
onFailurein interfaceActionRequestFailureHandler- Parameters:
action- theActionRequestthat 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 so
-
-