congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
SimpleThreadPool$WorkerThread
Code IndexAdd Tabnine to your IDE (free)

How to use
SimpleThreadPool$WorkerThread
in
org.quartz.simpl

Best Java code snippets using org.quartz.simpl.SimpleThreadPool$WorkerThread (Showing top 20 results out of 315)

origin: quartz-scheduler/quartz

  WorkerThread wt = (WorkerThread)availWorkers.removeFirst();
  busyWorkers.add(wt);
  wt.run(runnable);
} else {
  WorkerThread wt = new WorkerThread(this, threadGroup,
      "WorkerThread-LastJob", prio, isMakeThreadsDaemons(), runnable);
  busyWorkers.add(wt);
  workers.add(wt);
  wt.start();
origin: quartz-scheduler/quartz

while(workerThreads.hasNext()) {
  WorkerThread wt = workerThreads.next();
  wt.shutdown();
  availWorkers.remove(wt);
      try {
        getLog().debug(
            "Waiting for thread " + wt.getName()
                + " to shut down");
      WorkerThread wt = (WorkerThread) workerThreads.next();
      try {
        wt.join();
        workerThreads.remove();
      } catch (InterruptedException _) {
origin: quartz-scheduler/quartz

if(getPriority() != tp.getThreadPriority()) {
  setPriority(tp.getThreadPriority());
origin: com.opensymphony.quartz/com.springsource.org.quartz

if(getPriority() != tp.getThreadPriority()) {
  setPriority(tp.getThreadPriority());
origin: quartz/quartz-all

if(getPriority() != tp.getThreadPriority()) {
  setPriority(tp.getThreadPriority());
origin: quartz/quartz-all

while(workerThreads.hasNext()) {
  WorkerThread wt = (WorkerThread) workerThreads.next();
  wt.shutdown();
  availWorkers.remove(wt);
    try {
      getLog().debug(
          "Waiting for thread " + wt.getName()
              + " to shut down");
origin: com.opensymphony.quartz/com.springsource.org.quartz

while(workerThreads.hasNext()) {
  WorkerThread wt = (WorkerThread) workerThreads.next();
  wt.shutdown();
  availWorkers.remove(wt);
    try {
      getLog().debug(
          "Waiting for thread " + wt.getName()
              + " to shut down");
origin: quartz/quartz-all

  WorkerThread wt = (WorkerThread)availWorkers.removeFirst();
  busyWorkers.add(wt);
  wt.run(runnable);
} else {
  WorkerThread wt = new WorkerThread(this, threadGroup,
      "WorkerThread-LastJob", prio, isMakeThreadsDaemons(), runnable);
  busyWorkers.add(wt);
  workers.add(wt);
  wt.start();
origin: com.opensymphony.quartz/com.springsource.org.quartz

  WorkerThread wt = (WorkerThread)availWorkers.removeFirst();
  busyWorkers.add(wt);
  wt.run(runnable);
} else {
  WorkerThread wt = new WorkerThread(this, threadGroup,
      "WorkerThread-LastJob", prio, isMakeThreadsDaemons(), runnable);
  busyWorkers.add(wt);
  workers.add(wt);
  wt.start();
origin: com.opensymphony.quartz/com.springsource.org.quartz

while(workerThreads.hasNext()) {
  WorkerThread wt = (WorkerThread) workerThreads.next();
  wt.start();
  availWorkers.add(wt);
origin: quartz/quartz-all

while(workerThreads.hasNext()) {
  WorkerThread wt = (WorkerThread) workerThreads.next();
  wt.start();
  availWorkers.add(wt);
origin: quartz/quartz-all

/**
 * <p>
 * Create a worker thread, start it, execute the runnable and terminate
 * the thread (one time execution).
 * </p>
 */
WorkerThread(SimpleThreadPool tp, ThreadGroup threadGroup, String name,
       int prio, boolean isDaemon, Runnable runnable) {
  super(threadGroup, name);
  this.tp = tp;
  this.runnable = runnable;
  if(runnable != null)
    runOnce = true;
  setPriority(prio);
  setDaemon(isDaemon);
}
origin: quartz/quartz-all

protected List createWorkerThreads(int count) {
  workers = new LinkedList();
  for (int i = 1; i<= count; ++i) {
    WorkerThread wt = new WorkerThread(this, threadGroup,
      getThreadNamePrefix() + "-" + i,
      getThreadPriority(),
      isMakeThreadsDaemons());
    if (isThreadsInheritContextClassLoaderOfInitializingThread()) {
      wt.setContextClassLoader(Thread.currentThread()
          .getContextClassLoader());
    }
    workers.add(wt);
  }
  return workers;
}
origin: com.opensymphony.quartz/com.springsource.org.quartz

protected List createWorkerThreads(int count) {
  workers = new LinkedList();
  for (int i = 1; i<= count; ++i) {
    WorkerThread wt = new WorkerThread(this, threadGroup,
      getThreadNamePrefix() + "-" + i,
      getThreadPriority(),
      isMakeThreadsDaemons());
    if (isThreadsInheritContextClassLoaderOfInitializingThread()) {
      wt.setContextClassLoader(Thread.currentThread()
          .getContextClassLoader());
    }
    workers.add(wt);
  }
  return workers;
}
origin: com.opensymphony.quartz/com.springsource.org.quartz

/**
 * <p>
 * Create a worker thread, start it, execute the runnable and terminate
 * the thread (one time execution).
 * </p>
 */
WorkerThread(SimpleThreadPool tp, ThreadGroup threadGroup, String name,
       int prio, boolean isDaemon, Runnable runnable) {
  super(threadGroup, name);
  this.tp = tp;
  this.runnable = runnable;
  setPriority(prio);
  setDaemon(isDaemon);
}
origin: quartz-scheduler/quartz

while(workerThreads.hasNext()) {
  WorkerThread wt = workerThreads.next();
  wt.shutdown();
  availWorkers.remove(wt);
      try {
        getLog().debug(
            "Waiting for thread " + wt.getName()
                + " to shut down");
      WorkerThread wt = (WorkerThread) workerThreads.next();
      try {
        wt.join();
        workerThreads.remove();
      } catch (InterruptedException _) {
origin: quartz-scheduler/quartz

if(getPriority() != tp.getThreadPriority()) {
  setPriority(tp.getThreadPriority());
origin: quartz-scheduler/quartz

while(workerThreads.hasNext()) {
  WorkerThread wt = workerThreads.next();
  wt.start();
  availWorkers.add(wt);
origin: quartz-scheduler/quartz

while(workerThreads.hasNext()) {
  WorkerThread wt = workerThreads.next();
  wt.start();
  availWorkers.add(wt);
origin: quartz-scheduler/quartz

  WorkerThread wt = (WorkerThread)availWorkers.removeFirst();
  busyWorkers.add(wt);
  wt.run(runnable);
} else {
  WorkerThread wt = new WorkerThread(this, threadGroup,
      "WorkerThread-LastJob", prio, isMakeThreadsDaemons(), runnable);
  busyWorkers.add(wt);
  workers.add(wt);
  wt.start();
org.quartz.simplSimpleThreadPool$WorkerThread

Javadoc

A Worker loops, waiting to execute tasks.

Most used methods

  • <init>
    Create a worker thread, start it, execute the runnable and terminate the thread (one time execution
  • getName
  • getPriority
  • run
  • setContextClassLoader
  • setDaemon
  • setPriority
  • shutdown
    Signal the thread that it should terminate.
  • start
  • join

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (Timer)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSystemService (Context)
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • JList (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now