Java Thread Executor Create createExecutorService()

Here you can find the source of createExecutorService()

Description

create Executor Service

License

Open Source License

Declaration

public static ThreadPoolExecutor createExecutorService() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

public class Main {
    public static ThreadPoolExecutor createExecutorService() {
        return new ThreadPoolExecutor(1, 1, 60L, TimeUnit.SECONDS,
                new LinkedBlockingQueue<Runnable>());
    }//from   w w w.j a v a2 s .  c  om
}

Related

  1. createDefaultExecutorService(final String threadNamePrefix, final int parallel)
  2. createEventsOrderedDeliveryExecutor()
  3. createExecutor()
  4. createExecutor(final String file)
  5. createExecutors(int numThreads)
  6. createResourceRetrievalService( final String threadName)
  7. createSingleThreadExecutor(final String name)
  8. createStatisticsExecutor()
  9. createThreadFactory(final String prefix)