Codota Logo
DirectExecutor.<init>
Code IndexAdd Codota to your IDE (free)

How to use
org.jgroups.util.DirectExecutor
constructor

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

  • Common ways to obtain DirectExecutor
private void myMethod () {
DirectExecutor d =
  • Codota Iconnew DirectExecutor()
  • Smart code suggestions by Codota
}
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<init>

Popular methods of DirectExecutor

    Popular in Java

    • Updating database using SQL prepared statement
    • startActivity (Activity)
    • scheduleAtFixedRate (ScheduledExecutorService)
      Creates and executes a periodic action that becomes enabled first after the given initial delay, and
    • requestLocationUpdates (LocationManager)
    • SocketTimeoutException (java.net)
      This exception is thrown when a timeout expired on a socket read or accept operation.
    • Arrays (java.util)
      This class contains various methods for manipulating arrays (such as sorting and searching). This cl
    • BlockingQueue (java.util.concurrent)
      A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
    • Stream (java.util.stream)
      A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
    • Annotation (javassist.bytecode.annotation)
      The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
    • Notification (javax.management)
    Codota Logo
    • Products

      Search for Java codeSearch for JavaScript codeEnterprise
    • IDE Plugins

      IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Codota for your IDE now