Tabnine Logo
NioReceiver.getMaxThreads
Code IndexAdd Tabnine to your IDE (free)

How to use
getMaxThreads
method
in
org.apache.catalina.tribes.transport.nio.NioReceiver

Best Java code snippets using org.apache.catalina.tribes.transport.nio.NioReceiver.getMaxThreads (Showing top 4 results out of 315)

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

/**
 * start cluster receiver
 * @throws Exception
 * @see org.apache.catalina.tribes.ClusterReceiver#start()
 */
public void start() throws IOException {
  super.start();
  try {
    setPool(new RxTaskPool(getMaxThreads(),getMinThreads(),this));
  } catch (Exception x) {
    log.fatal("ThreadPool can initilzed. Listener not started", x);
    if ( x instanceof IOException ) throw (IOException)x;
    else throw new IOException(x.getMessage());
  }
  try {
    getBind();
    bind();
    Thread t = new Thread(this, "NioReceiver");
    t.setDaemon(true);
    t.start();
  } catch (Exception x) {
    log.fatal("Unable to start cluster receiver", x);
    if ( x instanceof IOException ) throw (IOException)x;
    else throw new IOException(x.getMessage());
  }
}

origin: org.apache.geronimo.ext.tomcat/tribes

/**
 * start cluster receiver
 * @throws IOException
 * @see org.apache.catalina.tribes.ChannelReceiver#start()
 */
@Override
public void start() throws IOException {
  super.start();
  try {
    setPool(new RxTaskPool(getMaxThreads(),getMinThreads(),this));
  } catch (Exception x) {
    log.fatal("ThreadPool can initilzed. Listener not started", x);
    if ( x instanceof IOException ) throw (IOException)x;
    else throw new IOException(x.getMessage());
  }
  try {
    getBind();
    bind();
    Thread t = new Thread(this, "NioReceiver");
    t.setDaemon(true);
    t.start();
  } catch (Exception x) {
    log.fatal("Unable to start cluster receiver", x);
    if ( x instanceof IOException ) throw (IOException)x;
    else throw new IOException(x.getMessage());
  }
}
origin: codefollower/Tomcat-Research

/**
 * start cluster receiver
 * @throws IOException
 * @see org.apache.catalina.tribes.ChannelReceiver#start()
 */
@Override
public void start() throws IOException {
  super.start();
  try {
    setPool(new RxTaskPool(getMaxThreads(),getMinThreads(),this));
  } catch (Exception x) {
    log.fatal(sm.getString("NioReceiver.threadpool.fail"), x);
    if ( x instanceof IOException ) throw (IOException)x;
    else throw new IOException(x.getMessage());
  }
  try {
    getBind();
    bind();
    Thread t = new Thread(this, "NioReceiver");
    t.setDaemon(true);
    t.start();
  } catch (Exception x) {
    log.fatal(sm.getString("NioReceiver.start.fail"), x);
    if ( x instanceof IOException ) throw (IOException)x;
    else throw new IOException(x.getMessage());
  }
}
origin: org.apache.tomcat/tomcat-tribes

super.start();
try {
  setPool(new RxTaskPool(getMaxThreads(),getMinThreads(),this));
} catch (Exception x) {
  log.fatal(sm.getString("nioReceiver.threadpool.fail"), x);
org.apache.catalina.tribes.transport.nioNioReceivergetMaxThreads

Popular methods of NioReceiver

  • addEvent
  • bind
  • cancelledKey
  • doListen
  • events
  • getAutoBind
  • getBind
  • getExecutor
  • getMinThreads
  • getOoBInline
  • getRxBufSize
  • getSelectorTimeout
  • getRxBufSize,
  • getSelectorTimeout,
  • getSoKeepAlive,
  • getSoLingerOn,
  • getSoLingerTime,
  • getSoReuseAddress,
  • getSoTrafficClass,
  • getTaskPool,
  • getTcpNoDelay

Popular in Java

  • Finding current android device location
  • onCreateOptionsMenu (Activity)
  • findViewById (Activity)
  • getApplicationContext (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Join (org.hibernate.mapping)
  • Table (org.hibernate.mapping)
    A relational table
  • Top 12 Jupyter Notebook extensions
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