Tabnine Logo
StandardThreadExecutor.getMinSpareThreads
Code IndexAdd Tabnine to your IDE (free)

How to use
getMinSpareThreads
method
in
org.apache.catalina.core.StandardThreadExecutor

Best Java code snippets using org.apache.catalina.core.StandardThreadExecutor.getMinSpareThreads (Showing top 9 results out of 315)

origin: jboss.web/jbossweb

public void start() throws LifecycleException {
  lifecycle.fireLifecycleEvent(BEFORE_START_EVENT, null);
  TaskQueue taskqueue = new TaskQueue();
  TaskThreadFactory tf = new TaskThreadFactory(namePrefix);
  lifecycle.fireLifecycleEvent(START_EVENT, null);
  executor = new ThreadPoolExecutor(getMinSpareThreads(), getMaxThreads(), maxIdleTime, TimeUnit.MILLISECONDS,taskqueue, tf);
  taskqueue.setParent( (ThreadPoolExecutor) executor);
  lifecycle.fireLifecycleEvent(AFTER_START_EVENT, null);
}

origin: org.apache.catalina/com.springsource.org.apache.catalina

/**
 * Start the component and implement the requirements
 * of {@link org.apache.catalina.util.LifecycleBase#startInternal()}.
 *
 * @exception LifecycleException if this component detects a fatal error
 *  that prevents this component from being used
 */
@Override
protected void startInternal() throws LifecycleException {
  taskqueue = new TaskQueue(maxQueueSize);
  TaskThreadFactory tf = new TaskThreadFactory(namePrefix,daemon,getThreadPriority());
  executor = new ThreadPoolExecutor(getMinSpareThreads(), getMaxThreads(), maxIdleTime, TimeUnit.MILLISECONDS,taskqueue, tf);
  if (prestartminSpareThreads) {
    executor.prestartAllCoreThreads();
  }
  taskqueue.setParent(executor);
  setState(LifecycleState.STARTING);
}
origin: com.ovea.tajin.servers/tajin-server-jetty9

/**
 * Start the component and implement the requirements
 * of {@link org.apache.catalina.util.LifecycleBase#startInternal()}.
 *
 * @exception LifecycleException if this component detects a fatal error
 *  that prevents this component from being used
 */
@Override
protected void startInternal() throws LifecycleException {
  taskqueue = new TaskQueue(maxQueueSize);
  TaskThreadFactory tf = new TaskThreadFactory(namePrefix,daemon,getThreadPriority());
  executor = new ThreadPoolExecutor(getMinSpareThreads(), getMaxThreads(), maxIdleTime, TimeUnit.MILLISECONDS,taskqueue, tf);
  if (prestartminSpareThreads) {
    executor.prestartAllCoreThreads();
  }
  taskqueue.setParent(executor);
  setState(LifecycleState.STARTING);
}
origin: codefollower/Tomcat-Research

/**
 * Start the component and implement the requirements
 * of {@link org.apache.catalina.util.LifecycleBase#startInternal()}.
 *
 * @exception LifecycleException if this component detects a fatal error
 *  that prevents this component from being used
 */
@Override
protected void startInternal() throws LifecycleException {
  taskqueue = new TaskQueue(maxQueueSize);
  TaskThreadFactory tf = new TaskThreadFactory(namePrefix,daemon,getThreadPriority());
  executor = new ThreadPoolExecutor(getMinSpareThreads(), getMaxThreads(), maxIdleTime, TimeUnit.MILLISECONDS,taskqueue, tf);
  if (prestartminSpareThreads) {
    executor.prestartAllCoreThreads();
  }
  taskqueue.setParent(executor);
  setState(LifecycleState.STARTING);
}
origin: org.apache.geronimo.ext.tomcat/catalina

/**
 * Start the component and implement the requirements
 * of {@link org.apache.catalina.util.LifecycleBase#startInternal()}.
 *
 * @exception LifecycleException if this component detects a fatal error
 *  that prevents this component from being used
 */
@Override
protected void startInternal() throws LifecycleException {
  taskqueue = new TaskQueue(maxQueueSize);
  TaskThreadFactory tf = new TaskThreadFactory(namePrefix,daemon,getThreadPriority());
  executor = new ThreadPoolExecutor(getMinSpareThreads(), getMaxThreads(), maxIdleTime, TimeUnit.MILLISECONDS,taskqueue, tf);
  if (prestartminSpareThreads) {
    executor.prestartAllCoreThreads();
  }
  taskqueue.setParent(executor);
  setState(LifecycleState.STARTING);
}
origin: com.ovea.tajin.server/tajin-server-jetty9

/**
 * Start the component and implement the requirements
 * of {@link org.apache.catalina.util.LifecycleBase#startInternal()}.
 *
 * @exception LifecycleException if this component detects a fatal error
 *  that prevents this component from being used
 */
@Override
protected void startInternal() throws LifecycleException {
  taskqueue = new TaskQueue(maxQueueSize);
  TaskThreadFactory tf = new TaskThreadFactory(namePrefix,daemon,getThreadPriority());
  executor = new ThreadPoolExecutor(getMinSpareThreads(), getMaxThreads(), maxIdleTime, TimeUnit.MILLISECONDS,taskqueue, tf);
  if (prestartminSpareThreads) {
    executor.prestartAllCoreThreads();
  }
  taskqueue.setParent(executor);
  setState(LifecycleState.STARTING);
}
origin: com.ovea.tajin.server/tajin-server-tomcat7

/**
 * Start the component and implement the requirements
 * of {@link org.apache.catalina.util.LifecycleBase#startInternal()}.
 *
 * @exception LifecycleException if this component detects a fatal error
 *  that prevents this component from being used
 */
@Override
protected void startInternal() throws LifecycleException {
  taskqueue = new TaskQueue(maxQueueSize);
  TaskThreadFactory tf = new TaskThreadFactory(namePrefix,daemon,getThreadPriority());
  executor = new ThreadPoolExecutor(getMinSpareThreads(), getMaxThreads(), maxIdleTime, TimeUnit.MILLISECONDS,taskqueue, tf);
  if (prestartminSpareThreads) {
    executor.prestartAllCoreThreads();
  }
  taskqueue.setParent(executor);
  setState(LifecycleState.STARTING);
}
origin: org.apache.tomcat/tomcat-catalina

/**
 * Start the component and implement the requirements
 * of {@link org.apache.catalina.util.LifecycleBase#startInternal()}.
 *
 * @exception LifecycleException if this component detects a fatal error
 *  that prevents this component from being used
 */
@Override
protected void startInternal() throws LifecycleException {
  taskqueue = new TaskQueue(maxQueueSize);
  TaskThreadFactory tf = new TaskThreadFactory(namePrefix,daemon,getThreadPriority());
  executor = new ThreadPoolExecutor(getMinSpareThreads(), getMaxThreads(), maxIdleTime, TimeUnit.MILLISECONDS,taskqueue, tf);
  executor.setThreadRenewalDelay(threadRenewalDelay);
  if (prestartminSpareThreads) {
    executor.prestartAllCoreThreads();
  }
  taskqueue.setParent(executor);
  setState(LifecycleState.STARTING);
}
origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

/**
 * Start the component and implement the requirements
 * of {@link org.apache.catalina.util.LifecycleBase#startInternal()}.
 *
 * @exception LifecycleException if this component detects a fatal error
 *  that prevents this component from being used
 */
@Override
protected void startInternal() throws LifecycleException {
  taskqueue = new TaskQueue(maxQueueSize);
  TaskThreadFactory tf = new TaskThreadFactory(namePrefix,daemon,getThreadPriority());
  executor = new ThreadPoolExecutor(getMinSpareThreads(), getMaxThreads(), maxIdleTime, TimeUnit.MILLISECONDS,taskqueue, tf);
  executor.setThreadRenewalDelay(threadRenewalDelay);
  if (prestartminSpareThreads) {
    executor.prestartAllCoreThreads();
  }
  taskqueue.setParent(executor);
  setState(LifecycleState.STARTING);
}
org.apache.catalina.coreStandardThreadExecutorgetMinSpareThreads

Popular methods of StandardThreadExecutor

  • getMaxThreads
  • getThreadPriority
  • contextStopping
  • getName
  • setState
  • <init>
  • setMaxThreads

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSharedPreferences (Context)
  • getExternalFilesDir (Context)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Collectors (java.util.stream)
  • JComboBox (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • CodeWhisperer alternatives
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