A - The actor typepublic final class DispatcherSettings<A extends CommandActor>
extends java.lang.Object
Potentials that occur by trying out the same input
on several commands.| Modifier and Type | Class and Description |
|---|---|
static class |
DispatcherSettings.Builder<A extends CommandActor>
Builder class for
DispatcherSettings |
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MAXIMUM_FAILED_ATTEMPTS
The default number of failed attempts after which Lamp will stop
testing out commands (for efficiency) and invoke the
FailureHandler. |
static java.lang.String |
LONG_FORMAT_PREFIX
The default long format for flags and switches
|
static java.lang.String |
SHORT_FORMAT_PREFIX
The default short format for flags and switches
|
| Modifier and Type | Method and Description |
|---|---|
static <A extends CommandActor> |
builder()
Creates a new
DispatcherSettings.Builder for constructing DispatcherSettings |
@NotNull FailureHandler<A> |
failureHandler()
The failure handler that will consume the failed potentials.
|
int |
maximumFailedAttempts()
The number of failed attempts after which Lamp will stop testing out commands
(for efficiency) and invoke the
failureHandler(). |
@NotNull StackTraceSanitizer |
stackTraceSanitizer()
The stack trace sanitizer for cleaning up stack-traces of errors
thrown inside commands
|
@NotNull DispatcherSettings.Builder<A> |
toBuilder()
Creates a new
DispatcherSettings.Builder based on this DispatcherSettings
instance |
public static final java.lang.String LONG_FORMAT_PREFIX
public static final java.lang.String SHORT_FORMAT_PREFIX
public static final int DEFAULT_MAXIMUM_FAILED_ATTEMPTS
FailureHandler.@NotNull public static <A extends CommandActor> @NotNull DispatcherSettings.Builder<A> builder()
DispatcherSettings.Builder for constructing DispatcherSettingsA - The actor typepublic int maximumFailedAttempts()
failureHandler().@NotNull public @NotNull FailureHandler<A> failureHandler()
@NotNull public @NotNull StackTraceSanitizer stackTraceSanitizer()
@Contract(value="-> new",
pure=true)
@NotNull
public @NotNull DispatcherSettings.Builder<A> toBuilder()
DispatcherSettings.Builder based on this DispatcherSettings
instance