A - The actor typepublic static final class DispatcherSettings.Builder<A extends CommandActor>
extends java.lang.Object
DispatcherSettings| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
@NotNull DispatcherSettings<A> |
build()
Creates a new
DispatcherSettings based on this builder |
@NotNull DispatcherSettings.Builder<A> |
failureHandler(FailureHandler<? super A> failureHandler)
Sets the failure handler that will consume the failed potentials.
|
@NotNull DispatcherSettings.Builder<A> |
maximumFailedAttempts(@Range(from=1L,to=2147483647L) int maximumFailedAttempts)
Sets the number of failed attempts after which Lamp will stop testing
out commands (for efficiency) and invoke the
DispatcherSettings.failureHandler(). |
DispatcherSettings.Builder<A> |
stackTraceSanitizer(@NotNull StackTraceSanitizer stackTraceSanitizer)
Sets the stack-trace sanitizer.
|
@NotNull public @NotNull DispatcherSettings.Builder<A> maximumFailedAttempts(@Range(from=1L,to=2147483647L) int maximumFailedAttempts)
DispatcherSettings.failureHandler().maximumFailedAttempts - the maximum number of failed attempts@Contract(value="null -> fail") @NotNull public @NotNull DispatcherSettings.Builder<A> failureHandler(FailureHandler<? super A> failureHandler)
failureHandler - the failure handlerpublic DispatcherSettings.Builder<A> stackTraceSanitizer(@NotNull @NotNull StackTraceSanitizer stackTraceSanitizer)
StackTraceSanitizerstackTraceSanitizer - Sanitizer to use@Contract(value="-> new",
pure=true)
@NotNull
public @NotNull DispatcherSettings<A> build()
DispatcherSettings based on this builder