Java Thread Executor getChannelService()

Here you can find the source of getChannelService()

Description

get Channel Service

License

Open Source License

Declaration

public static final ExecutorService getChannelService() 

Method Source Code


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

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import com.google.common.util.concurrent.ThreadFactoryBuilder;

public class Main {
    private static final ExecutorService CHANNEL_SERVICE = Executors.newFixedThreadPool(
            Runtime.getRuntime().availableProcessors(),
            new ThreadFactoryBuilder().setNameFormat("route-channel-service-%d").build());

    public static final ExecutorService getChannelService() {
        return CHANNEL_SERVICE;
    }/*from ww  w . j av a2 s. com*/
}

Related

  1. addExecutorShutdownHook(final ExecutorService exec)
  2. addThread(Runnable runnable)
  3. convert(Runnable runnable, T result)
  4. getActiveHelperInstanceCount(String helperName)
  5. getConstantLookup()
  6. getThreadExecutor(int nThreads)
  7. isCorrectCollectionSizeTimeOut(Collection collection, int size, long timeout, TimeUnit unit)
  8. isRegularlyDone(Future future)