public static class DispatcherExceptionHandling.Builder extends ExceptionHandling.Builder<DispatcherExceptionHandling.Builder>
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
DispatcherExceptionHandling |
build()
Create the dispatcher exception handling object.
|
DispatcherExceptionHandling.Builder |
getThis()
Return this.
|
DispatcherExceptionHandling.Builder |
setLog(boolean log)
Set if dispatcher should log the exception or not.
|
DispatcherExceptionHandling.Builder |
setRandomizeSleep(boolean randomizeSleep)
Set if sleep time should be randomized or not.
|
DispatcherExceptionHandling.Builder |
setSleep(boolean sleep)
Set if dispatcher should sleep a while after exception or not.
|
setLogLevel, setLogStackTracepublic DispatcherExceptionHandling.Builder getThis()
getThis in class ExceptionHandling.Builder<DispatcherExceptionHandling.Builder>public DispatcherExceptionHandling.Builder setLog(boolean log)
log - True if dispatcher should log the exception.public DispatcherExceptionHandling.Builder setSleep(boolean sleep)
sleep - True if dispatcher should sleep a while after exception.public DispatcherExceptionHandling.Builder setRandomizeSleep(boolean randomizeSleep)
randomizeSleep - True if sleep time should be randomized.public DispatcherExceptionHandling build()
build in class ExceptionHandling.Builder<DispatcherExceptionHandling.Builder>Copyright © 2014–2021 Nitor Creations. All rights reserved.