Package io.nflow.engine.exception
Class DispatcherExceptionHandling.Builder
java.lang.Object
io.nflow.engine.exception.ExceptionHandling.Builder<DispatcherExceptionHandling.Builder>
io.nflow.engine.exception.DispatcherExceptionHandling.Builder
- Enclosing class:
DispatcherExceptionHandling
public static class DispatcherExceptionHandling.Builder
extends ExceptionHandling.Builder<DispatcherExceptionHandling.Builder>
Builder for exception handling settings.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create the dispatcher exception handling object.getThis()Return this.setLog(boolean log) Set if dispatcher should log the exception or not.setRandomizeSleep(boolean randomizeSleep) Set if sleep time should be randomized or not.setSleep(boolean sleep) Set if dispatcher should sleep a while after exception or not.Methods inherited from class io.nflow.engine.exception.ExceptionHandling.Builder
setLogLevel, setLogStackTrace
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
getThis
Return this.- Specified by:
getThisin classExceptionHandling.Builder<DispatcherExceptionHandling.Builder>- Returns:
- This.
-
setLog
Set if dispatcher should log the exception or not. Default is true.- Parameters:
log- True if dispatcher should log the exception.- Returns:
- This.
-
setSleep
Set if dispatcher should sleep a while after exception or not. Default is true.- Parameters:
sleep- True if dispatcher should sleep a while after exception.- Returns:
- This.
-
setRandomizeSleep
Set if sleep time should be randomized or not. Default is false.- Parameters:
randomizeSleep- True if sleep time should be randomized.- Returns:
- This.
-
build
Create the dispatcher exception handling object.- Overrides:
buildin classExceptionHandling.Builder<DispatcherExceptionHandling.Builder>- Returns:
- Dispatcher exception handling.
-