Codota Logo
Trigger.getPriority
Code IndexAdd Codota to your IDE (free)

How to use
getPriority
method
in
org.quartz.triggers.Trigger

Best Java code snippets using org.quartz.triggers.Trigger.getPriority (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: knowm/Sundial

 @Override
 public int compare(Trigger trig1, Trigger trig2) {
  Date t1 = trig1.getNextFireTime();
  Date t2 = trig2.getNextFireTime();
  if (t1 != null || t2 != null) {
   if (t1 == null) {
    return 1;
   }
   if (t2 == null) {
    return -1;
   }
   if (t1.before(t2)) {
    return -1;
   }
   if (t1.after(t2)) {
    return 1;
   }
  }
  int comp = trig2.getPriority() - trig1.getPriority();
  if (comp != 0) {
   return comp;
  }
  return trig1.getName().compareTo(trig2.getName());
 }
}
origin: com.xeiam/sundial

 @Override
 public int compare(Trigger trig1, Trigger trig2) {
  Date t1 = trig1.getNextFireTime();
  Date t2 = trig2.getNextFireTime();
  if (t1 != null || t2 != null) {
   if (t1 == null) {
    return 1;
   }
   if (t2 == null) {
    return -1;
   }
   if (t1.before(t2)) {
    return -1;
   }
   if (t1.after(t2)) {
    return 1;
   }
  }
  int comp = trig2.getPriority() - trig1.getPriority();
  if (comp != 0) {
   return comp;
  }
  return trig1.getName().compareTo(trig2.getName());
 }
}
origin: org.knowm/sundial

 @Override
 public int compare(Trigger trig1, Trigger trig2) {
  Date t1 = trig1.getNextFireTime();
  Date t2 = trig2.getNextFireTime();
  if (t1 != null || t2 != null) {
   if (t1 == null) {
    return 1;
   }
   if (t2 == null) {
    return -1;
   }
   if (t1.before(t2)) {
    return -1;
   }
   if (t1.after(t2)) {
    return 1;
   }
  }
  int comp = trig2.getPriority() - trig1.getPriority();
  if (comp != 0) {
   return comp;
  }
  return trig1.getName().compareTo(trig2.getName());
 }
}
org.quartz.triggersTriggergetPriority

Javadoc

The priority of a Trigger acts as a tiebreaker such that if two Trigger s have the same scheduled fire time, then the one with the higher priority will get first access to a worker thread.

If not explicitly set, the default value is 5.

Popular methods of Trigger

  • getName
    Get the name of this Trigger.
  • getNextFireTime
    Returns the next time at which the Trigger is scheduled to fire. If the trigger will not fire again,
  • getJobDataMap
    Get the JobDataMap that is associated with the Trigger. Changes made to this map during job executio
  • getJobName
    Get the name of the associated org.quartz.jobs.JobDetail.

Popular in Java

  • Finding current android device location
  • getSystemService (Context)
  • runOnUiThread (Activity)
  • addToBackStack (FragmentTransaction)
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • BitSet (java.util)
    This class implements a vector of bits that grows as needed. Each component of the bit set has a boo
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now