Tabnine Logo
StandardThreadExecutor.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.catalina.core.StandardThreadExecutor
constructor

Best Java code snippets using org.apache.catalina.core.StandardThreadExecutor.<init> (Showing top 1 results out of 315)

origin: nutzam/nutzboot

@Override
public void init() throws LifecycleException {
  this.tomcat = new Tomcat();
  File baseDir = createTempDir("tomcat");
  this.tomcat.setBaseDir(baseDir.getAbsolutePath());
  Connector connector = new Connector(PROP_PROTOCOL);
  connector.setPort(getPort());
  connector.setURIEncoding(DEFAULT_CHARSET.name());
  connector.setMaxPostSize(conf.getInt(PROP_MAX_POST_SIZE, 64 * 1024 * 1024));
  String connectorKey = PRE + "connector.";
  for (String key : conf.keys()) {
    if (key.startsWith(connectorKey)) {
      String k = key.substring(connectorKey.length());
      String v = conf.get(key);
      connector.setProperty(k, v);
    }
  }
  // 设置一下最大线程数
  this.tomcat.getService().addConnector(connector);
  StandardThreadExecutor executor = new StandardThreadExecutor();
  executor.setMaxThreads(getMaxThread());
  connector.getService().addExecutor(executor);
  this.tomcat.setConnector(connector);
  this.tomcat.setHostname(getHost());
  this.tomcat.getHost().setAutoDeploy(false);
  this.tomcat.getEngine().setBackgroundProcessorDelay(30);
  this.prepareContext();
}
org.apache.catalina.coreStandardThreadExecutor<init>

Popular methods of StandardThreadExecutor

  • getMaxThreads
  • getMinSpareThreads
  • getThreadPriority
  • contextStopping
  • getName
  • setState
  • setMaxThreads

Popular in Java

  • Finding current android device location
  • setContentView (Activity)
  • findViewById (Activity)
  • getApplicationContext (Context)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • JFileChooser (javax.swing)
  • Best plugins for Eclipse
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