public static enum ITrigger.EMisfireInstruction extends Enum<ITrigger.EMisfireInstruction>
| Enum Constant and Description |
|---|
MISFIRE_INSTRUCTION_DO_NOTHING
Instructs the
that upon a mis-fire
situation, the Trigger wants to have it's next-fire-time
updated to the next time in the schedule after the current time (taking
into account any associated Calendar, but it does not want
to be fired now. |
MISFIRE_INSTRUCTION_FIRE_ONCE_NOW
Instructs the
that upon a mis-fire
situation, the Trigger wants to be fired now by
Scheduler. |
MISFIRE_INSTRUCTION_IGNORE_MISFIRE_POLICY
Instructs the
that the
Trigger will never be evaluated for a misfire situation, and
that the scheduler will simply try to fire it as soon as it can, and then
update the Trigger as if it had fired at the proper time. |
MISFIRE_INSTRUCTION_RESCHEDULE_NEXT_WITH_EXISTING_COUNT
Instructs the
that upon a mis-fire
situation, the wants to be
re-scheduled to the next scheduled time after 'now' - taking into account
any associated , and with the repeat count
left unchanged. |
MISFIRE_INSTRUCTION_RESCHEDULE_NEXT_WITH_REMAINING_COUNT
Instructs the
that upon a mis-fire
situation, the wants to be
re-scheduled to the next scheduled time after 'now' - taking into account
any associated , and with the repeat count
set to what it would be, if it had not missed any firings. |
MISFIRE_INSTRUCTION_RESCHEDULE_NOW_WITH_EXISTING_REPEAT_COUNT
Instructs the
that upon a mis-fire
situation, the wants to be
re-scheduled to 'now' (even if the associated
excludes 'now') with the repeat count left
as-is. |
MISFIRE_INSTRUCTION_RESCHEDULE_NOW_WITH_REMAINING_REPEAT_COUNT
Instructs the
that upon a mis-fire
situation, the wants to be
re-scheduled to 'now' (even if the associated
excludes 'now') with the repeat count set
to what it would be, if it had not missed any firings. |
MISFIRE_INSTRUCTION_SMART_POLICY
Instructs the
that upon a mis-fire
situation, the updateAfterMisfire() method will be called on
the Trigger to determine the mis-fire instruction, which
logic will be trigger-implementation-dependent. |
| Modifier and Type | Method and Description |
|---|---|
static ITrigger.EMisfireInstruction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ITrigger.EMisfireInstruction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ITrigger.EMisfireInstruction MISFIRE_INSTRUCTION_IGNORE_MISFIRE_POLICY
IScheduler that the
Trigger will never be evaluated for a misfire situation, and
that the scheduler will simply try to fire it as soon as it can, and then
update the Trigger as if it had fired at the proper time.public static final ITrigger.EMisfireInstruction MISFIRE_INSTRUCTION_SMART_POLICY
IScheduler that upon a mis-fire
situation, the updateAfterMisfire() method will be called on
the Trigger to determine the mis-fire instruction, which
logic will be trigger-implementation-dependent.getSmartMisfirePolicy() method on
the particular Trigger implementation you are using.public static final ITrigger.EMisfireInstruction MISFIRE_INSTRUCTION_FIRE_ONCE_NOW
IScheduler that upon a mis-fire
situation, the Trigger wants to be fired now by
Scheduler.public static final ITrigger.EMisfireInstruction MISFIRE_INSTRUCTION_DO_NOTHING
IScheduler that upon a mis-fire
situation, the Trigger wants to have it's next-fire-time
updated to the next time in the schedule after the current time (taking
into account any associated Calendar, but it does not want
to be fired now.public static final ITrigger.EMisfireInstruction MISFIRE_INSTRUCTION_RESCHEDULE_NOW_WITH_EXISTING_REPEAT_COUNT
IScheduler that upon a mis-fire
situation, the ISimpleTrigger wants to be
re-scheduled to 'now' (even if the associated
ICalendar excludes 'now') with the repeat count left
as-is. This does obey the Trigger end-time however, so if
'now' is after the end-time the Trigger will not fire
again.public static final ITrigger.EMisfireInstruction MISFIRE_INSTRUCTION_RESCHEDULE_NOW_WITH_REMAINING_REPEAT_COUNT
IScheduler that upon a mis-fire
situation, the ISimpleTrigger wants to be
re-scheduled to 'now' (even if the associated
ICalendar excludes 'now') with the repeat count set
to what it would be, if it had not missed any firings. This does obey the
Trigger end-time however, so if 'now' is after the end-time
the Trigger will not fire again.Trigger to go
to the 'COMPLETE' state after firing 'now', if all the repeat-fire-times
where missed.public static final ITrigger.EMisfireInstruction MISFIRE_INSTRUCTION_RESCHEDULE_NEXT_WITH_REMAINING_COUNT
IScheduler that upon a mis-fire
situation, the ISimpleTrigger wants to be
re-scheduled to the next scheduled time after 'now' - taking into account
any associated ICalendar, and with the repeat count
set to what it would be, if it had not missed any firings.Trigger to go directly to the 'COMPLETE' state if all
fire-times where missed.public static final ITrigger.EMisfireInstruction MISFIRE_INSTRUCTION_RESCHEDULE_NEXT_WITH_EXISTING_COUNT
IScheduler that upon a mis-fire
situation, the ISimpleTrigger wants to be
re-scheduled to the next scheduled time after 'now' - taking into account
any associated ICalendar, and with the repeat count
left unchanged.Trigger to go directly to the 'COMPLETE' state if the
end-time of the trigger has arrived.public static ITrigger.EMisfireInstruction[] values()
for (ITrigger.EMisfireInstruction c : ITrigger.EMisfireInstruction.values()) System.out.println(c);
public static ITrigger.EMisfireInstruction 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 nullCopyright © 2016–2021 Philip Helger. All rights reserved.