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 Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DispatcherExceptionHandlingbuild()Create the dispatcher exception handling object.DispatcherExceptionHandling.BuildergetThis()Return this.DispatcherExceptionHandling.BuildersetLog(boolean log)Set if dispatcher should log the exception or not.DispatcherExceptionHandling.BuildersetRandomizeSleep(boolean randomizeSleep)Set if sleep time should be randomized or not.DispatcherExceptionHandling.BuildersetSleep(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
-
-
-
-
Method Detail
-
getThis
public DispatcherExceptionHandling.Builder getThis()
Return this.- Specified by:
getThisin classExceptionHandling.Builder<DispatcherExceptionHandling.Builder>- Returns:
- This.
-
setLog
public DispatcherExceptionHandling.Builder setLog(boolean log)
Set if dispatcher should log the exception or not. Default is true.- Parameters:
log- True if dispatcher should log the exception.- Returns:
- This.
-
setSleep
public DispatcherExceptionHandling.Builder setSleep(boolean sleep)
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
public DispatcherExceptionHandling.Builder setRandomizeSleep(boolean randomizeSleep)
Set if sleep time should be randomized or not. Default is false.- Parameters:
randomizeSleep- True if sleep time should be randomized.- Returns:
- This.
-
build
public DispatcherExceptionHandling build()
Create the dispatcher exception handling object.- Overrides:
buildin classExceptionHandling.Builder<DispatcherExceptionHandling.Builder>- Returns:
- Dispatcher exception handling.
-
-