Tabnine Logo
DirectExecutor
Code IndexAdd Tabnine to your IDE (free)

How to use
DirectExecutor
in
org.jgroups.util

Best Java code snippets using org.jgroups.util.DirectExecutor (Showing top 6 results out of 315)

origin: wildfly/wildfly

public TimeScheduler3(ThreadFactory factory, int min_threads, int max_threads, long keep_alive_time,
           BlockingQueue<Runnable> queue, String rejection_policy, boolean thread_pool_enabled) {
  timer_thread_factory=factory;
  pool=thread_pool_enabled?
   new ThreadPoolExecutor(min_threads, max_threads,keep_alive_time, TimeUnit.MILLISECONDS,
               queue, factory, Util.parseRejectionPolicy(rejection_policy))
   : new DirectExecutor();
  start();
}
origin: wildfly/wildfly

thread_pool=new DirectExecutor();
origin: org.jboss.eap/wildfly-client-all

public TimeScheduler3(ThreadFactory factory, int min_threads, int max_threads, long keep_alive_time,
           BlockingQueue<Runnable> queue, String rejection_policy, boolean thread_pool_enabled) {
  timer_thread_factory=factory;
  pool=thread_pool_enabled?
   new ThreadPoolExecutor(min_threads, max_threads,keep_alive_time, TimeUnit.MILLISECONDS,
               queue, factory, Util.parseRejectionPolicy(rejection_policy))
   : new DirectExecutor();
  start();
}
origin: org.jgroups/com.springsource.org.jgroups

protected void init()
 throws Exception
{
 // use directExector if max thread pool size is less than or equal to zero.
 if(getProcessorMaxThreads() <= 0) {
   m_requestProcessors = new DirectExecutor();
 }
 else
 {
   // Create worker thread pool for processing incoming buffers
   ThreadPoolExecutor requestProcessors = new ThreadPoolExecutor(getProcessorMinThreads(), getProcessorMaxThreads(),
                                  getProcessorKeepAliveTime(), TimeUnit.MILLISECONDS,
                                  new LinkedBlockingQueue<Runnable>(getProcessorQueueSize()));
   requestProcessors.setThreadFactory(new ThreadFactory() {
     public Thread newThread(Runnable runnable) {
       Thread new_thread=new Thread(thread_group, runnable);
       new_thread.setDaemon(true);
       new_thread.setName("ConnectionTableNIO.Thread");
       m_backGroundThreads.add(new_thread);
       return new_thread;
     }
   });
   m_requestProcessors = requestProcessors;
 }
 m_writeHandlers = WriteHandler.create(getWriterThreads(), thread_group, m_backGroundThreads, log);
 m_readHandlers = ReadHandler.create(getReaderThreads(), this, thread_group, m_backGroundThreads, log);
}
origin: org.jgroups/com.springsource.org.jgroups

oob_thread_pool=new DirectExecutor();
thread_pool=new DirectExecutor();
origin: org.jboss.eap/wildfly-client-all

thread_pool=new DirectExecutor();
org.jgroups.utilDirectExecutor

Most used methods

  • <init>

Popular in Java

  • Parsing JSON documents to java classes using gson
  • compareTo (BigDecimal)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JFrame (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top PhpStorm 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