@Beta public static enum SshTasks.OnFailingTask extends java.lang.Enum<SshTasks.OnFailingTask>
Enum Constant and Description |
---|
FAIL |
IGNORE
not even a warning if the task fails (the caller is expected to handle it as appropriate)
|
WARN_IN_LOG_ONLY
issues a warning in the log if the task fails, otherwise swallows it
|
WARN_OR_IF_DYNAMIC_FAIL_MARKING_INESSENTIAL
issues a warning, sometimes implemented as marking the task inessential and failing it if it appears
we are in a dynamic
TaskQueueingContext ;
useful because this way the warning appears to the user;
but note that the check is done against the calling thread so use with some care
(and thus this enum is currently here rather then elsewhere) |
Modifier and Type | Method and Description |
---|---|
static SshTasks.OnFailingTask |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SshTasks.OnFailingTask[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SshTasks.OnFailingTask FAIL
public static final SshTasks.OnFailingTask WARN_OR_IF_DYNAMIC_FAIL_MARKING_INESSENTIAL
TaskQueueingContext
;
useful because this way the warning appears to the user;
but note that the check is done against the calling thread so use with some care
(and thus this enum is currently here rather then elsewhere)public static final SshTasks.OnFailingTask WARN_IN_LOG_ONLY
public static final SshTasks.OnFailingTask IGNORE
public static SshTasks.OnFailingTask[] values()
for (SshTasks.OnFailingTask c : SshTasks.OnFailingTask.values()) System.out.println(c);
public static SshTasks.OnFailingTask valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null