Class NoOpFailureHandler
- java.lang.Object
-
- org.apache.flink.streaming.connectors.elasticsearch.util.NoOpFailureHandler
-
- All Implemented Interfaces:
Serializable,ActionRequestFailureHandler
@Internal public class NoOpFailureHandler extends Object implements ActionRequestFailureHandler
AnActionRequestFailureHandlerthat simply fails the sink on any failures.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NoOpFailureHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)inthashCode()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) throws ThrowableDescription 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- Throws:
Throwable- if the sink should fail on this failure, the implementation should rethrow the exception or a custom one
-
-