Java Thread Executor Pool getPool()

Here you can find the source of getPool()

Description

get Pool

License

Open Source License

Declaration

public static ThreadPoolExecutor getPool() 

Method Source Code

//package com.java2s;
// Licensed under the Apache License, Version 2.0 (the "License");

import java.util.concurrent.Executors;
import java.util.concurrent.ThreadPoolExecutor;

public class Main {
    public static final ThreadPoolExecutor POOL = (ThreadPoolExecutor) Executors
            .newFixedThreadPool(10);

    public static ThreadPoolExecutor getPool() {
        return POOL;
    }/*from  w w w .ja v a 2  s .c om*/
}

Related

  1. clearPreloadThreads()
  2. createBoundedCachedThreadPool( final int corePoolSize, final int maximumPoolSize, final long keepAliveTime, final TimeUnit timeUnit)
  3. createClientThreadPool(int numThreads, int queueSize)
  4. createPool(int threads, int queueSize)
  5. createPooledExecutorService(int poolSize, final String namePrefix)
  6. getPool()
  7. getQueuedThreadPool(double threadToCpuRatio, int queueCapacity)
  8. getRecheckThreadPool()
  9. getThreadPool()