congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
SimpleThreadPool$WorkerThread.setContextClassLoader
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: quartz-scheduler/quartz

protected List<WorkerThread> createWorkerThreads(int createCount) {
  workers = new LinkedList<WorkerThread>();
  for (int i = 1; i<= createCount; ++i) {
    String threadPrefix = getThreadNamePrefix();
    if (threadPrefix == null) {
      threadPrefix = schedulerInstanceName + "_Worker";
    }
    WorkerThread wt = new WorkerThread(this, threadGroup,
      threadPrefix + "-" + i,
      getThreadPriority(),
      isMakeThreadsDaemons());
    if (isThreadsInheritContextClassLoaderOfInitializingThread()) {
      wt.setContextClassLoader(Thread.currentThread()
          .getContextClassLoader());
    }
    workers.add(wt);
  }
  return workers;
}
origin: quartz-scheduler/quartz

protected List<WorkerThread> createWorkerThreads(int createCount) {
  workers = new LinkedList<WorkerThread>();
  for (int i = 1; i<= createCount; ++i) {
    String threadPrefix = getThreadNamePrefix();
    if (threadPrefix == null) {
      threadPrefix = schedulerInstanceName + "_Worker";
    }
    WorkerThread wt = new WorkerThread(this, threadGroup,
      threadPrefix + "-" + 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: 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;
}
org.quartz.simplSimpleThreadPool$WorkerThreadsetContextClassLoader

Popular methods of SimpleThreadPool$WorkerThread

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

Popular in Java

  • Making http post requests using okhttp
  • getExternalFilesDir (Context)
  • onRequestPermissionsResult (Fragment)
  • addToBackStack (FragmentTransaction)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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