Search in sources :

Example 6 with CommonThreadPool

use of com.alipay.sofa.ark.common.thread.CommonThreadPool in project sofa-ark by sofastack.

the class ArkCommandHandler method init.

private static void init() {
    CommonThreadPool commandPool = new CommonThreadPool().setAllowCoreThreadTimeOut(true).setThreadPoolName(Constants.TELNET_COMMAND_THREAD_POOL_NAME).setDaemon(true);
    ThreadPoolManager.registerThreadPool(Constants.TELNET_COMMAND_THREAD_POOL_NAME, commandPool);
}
Also used : CommonThreadPool(com.alipay.sofa.ark.common.thread.CommonThreadPool)

Aggregations

CommonThreadPool (com.alipay.sofa.ark.common.thread.CommonThreadPool)6 BaseTest (com.alipay.sofa.ark.container.BaseTest)2 ArkRuntimeException (com.alipay.sofa.ark.exception.ArkRuntimeException)2 CountDownLatch (java.util.concurrent.CountDownLatch)2 ThreadPoolExecutor (java.util.concurrent.ThreadPoolExecutor)2 AtomicBoolean (java.util.concurrent.atomic.AtomicBoolean)2 Test (org.junit.Test)2