org.elasticsearch.hadoop.handler.HandlerResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elasticsearch-hadoop-cascading Show documentation
Show all versions of elasticsearch-hadoop-cascading Show documentation
Elasticsearch Hadoop Cascading
The newest version!
package org.elasticsearch.hadoop.handler;
/**
* Values that denote the result of an action taken by an {@link ErrorHandler}.
*/
public enum HandlerResult {
/**
* Signals to the connector that the given {@link ErrorHandler} was successfully able to handle the failure
* scenario, either by swallowing the failure, persisting the operation for examination, or attempting to
* retry the operation. In this case, the handling for this failure instance is stopped and no further handlers
* in the chain will be called.
*/
HANDLED,
/**
* Signals to the connector that the given {@link ErrorHandler} was unable to handle the failure scenario.
* In this case, the failure information is passed on to the next configured handler in the chain.
*/
PASS,
/**
* Signals to the connector that the given {@link ErrorHandler} determined that the given failure scenario
* is grounds to abort the job. In this case, the original error information will be extracted and thrown
* with no further handlers in the chain being called.
*/
ABORT
}