Class RetryRejectedExecutionFailureHandler
- java.lang.Object
-
- org.apache.flink.streaming.connectors.elasticsearch.util.RetryRejectedExecutionFailureHandler
-
- All Implemented Interfaces:
Serializable,ActionRequestFailureHandler
@Deprecated @PublicEvolving public class RetryRejectedExecutionFailureHandler extends Object implements ActionRequestFailureHandler
Deprecated.This hase been deprecated and will be removed in the future.AnActionRequestFailureHandlerthat re-adds requests that failed due to temporaryEsRejectedExecutionExceptions (which means that Elasticsearch node queues are currently full), and fails for all other failures.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RetryRejectedExecutionFailureHandler()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidonFailure(org.elasticsearch.action.ActionRequest action, Throwable failure, int restStatusCode, RequestIndexer indexer)Deprecated.Handle a failedActionRequest.
-
-
-
Method Detail
-
onFailure
public void onFailure(org.elasticsearch.action.ActionRequest action, Throwable failure, int restStatusCode, RequestIndexer indexer) throws ThrowableDeprecated.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- Throws:
Throwable- if the sink should fail on this failure, the implementation should rethrow the exception or a custom one
-
-