public static enum Job.Result extends Enum<Job.Result>
Enum Constant and Description |
---|
FAILURE
Indicates that
Job.onRunJob(Params) failed, but the Job shouldn't be rescheduled. |
RESCHEDULE
Indicates that
Job.onRunJob(Params) failed and the Job should be rescheduled
with the defined back-off criteria. |
SUCCESS
Indicates that
Job.onRunJob(Params) was successful. |
Modifier and Type | Method and Description |
---|---|
static Job.Result |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Job.Result[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Job.Result SUCCESS
Job.onRunJob(Params)
was successful.public static final Job.Result FAILURE
Job.onRunJob(Params)
failed, but the Job
shouldn't be rescheduled.
Job.Params.getFailureCount()
public static final Job.Result RESCHEDULE
Job.onRunJob(Params)
failed and the Job
should be rescheduled
with the defined back-off criteria. Note that returning RESCHEDULE
for a periodic
Job
is invalid and ignored.
public static Job.Result[] values()
for (Job.Result c : Job.Result.values()) System.out.println(c);
public static Job.Result valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null