Package io.nflow.engine.exception
Class StateSaveExceptionAnalyzer
- java.lang.Object
-
- io.nflow.engine.exception.StateSaveExceptionAnalyzer
-
@Component public class StateSaveExceptionAnalyzer extends Object
State save exception analyzer analyzes exceptions thrown while trying to save workflow state and determines how the exception is handled.
-
-
Constructor Summary
Constructors Constructor Description StateSaveExceptionAnalyzer(Environment env)Create state save exception analyzer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StateSaveExceptionHandlinganalyze(Exception e, int saveRetryCount)Override this to provide custom handling.StateSaveExceptionHandlinganalyzeSafely(Exception e, int saveRetryCount)Analyze the exception.
-
-
-
Constructor Detail
-
StateSaveExceptionAnalyzer
@Inject public StateSaveExceptionAnalyzer(Environment env)
Create state save exception analyzer.- Parameters:
env- The Spring environment.
-
-
Method Detail
-
analyzeSafely
public final StateSaveExceptionHandling analyzeSafely(Exception e, int saveRetryCount)
Analyze the exception.- Parameters:
e- The exception to be analyzed.saveRetryCount- How many times the saving has been attempted before this attempt.- Returns:
- How the exception should be handled.
-
analyze
protected StateSaveExceptionHandling analyze(Exception e, int saveRetryCount)
Override this to provide custom handling.- Parameters:
e- The exception to be analyzed.saveRetryCount- How many times the saving has been attempted before this attempt.- Returns:
- How the exception should be handled.
-
-