All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.quartz.runtime.QuartzMisfirePolicy Maven / Gradle / Ivy

There is a newer version: 3.17.0
Show newest version
package io.quarkus.quartz.runtime;

import java.util.EnumSet;
import java.util.Locale;

public enum QuartzMisfirePolicy {
    SMART_POLICY,
    IGNORE_MISFIRE_POLICY,
    FIRE_NOW,
    SIMPLE_TRIGGER_RESCHEDULE_NOW_WITH_EXISTING_REPEAT_COUNT,
    SIMPLE_TRIGGER_RESCHEDULE_NOW_WITH_REMAINING_REPEAT_COUNT,
    SIMPLE_TRIGGER_RESCHEDULE_NEXT_WITH_REMAINING_COUNT,
    SIMPLE_TRIGGER_RESCHEDULE_NEXT_WITH_EXISTING_COUNT,
    CRON_TRIGGER_DO_NOTHING;

    String dashedName() {
        return this.name().toLowerCase(Locale.ROOT).replace('_', '-');
    }

    static EnumSet validCronValues() {
        return EnumSet.of(SMART_POLICY, IGNORE_MISFIRE_POLICY, FIRE_NOW, CRON_TRIGGER_DO_NOTHING);
    }

    static EnumSet validSimpleValues() {
        return EnumSet.of(SMART_POLICY, IGNORE_MISFIRE_POLICY, FIRE_NOW,
                SIMPLE_TRIGGER_RESCHEDULE_NOW_WITH_EXISTING_REPEAT_COUNT,
                SIMPLE_TRIGGER_RESCHEDULE_NOW_WITH_REMAINING_REPEAT_COUNT, SIMPLE_TRIGGER_RESCHEDULE_NEXT_WITH_EXISTING_COUNT,
                SIMPLE_TRIGGER_RESCHEDULE_NEXT_WITH_REMAINING_COUNT);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy