Package de.gsi.acc.remote
Class RestCommonThreadPool
- java.lang.Object
-
- de.gsi.acc.remote.RestCommonThreadPool
-
- All Implemented Interfaces:
java.util.concurrent.ThreadFactory
public final class RestCommonThreadPool extends java.lang.Object implements java.util.concurrent.ThreadFactory
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.concurrent.ExecutorServicegetCommonPool()static java.util.concurrent.ScheduledExecutorServicegetCommonScheduledPool()static RestCommonThreadPoolgetInstance()static intgetNumbersOfThreads()java.lang.ThreadnewThread(java.lang.Runnable r)
-
-
-
Method Detail
-
newThread
public java.lang.Thread newThread(java.lang.Runnable r)
- Specified by:
newThreadin interfacejava.util.concurrent.ThreadFactory
-
getCommonPool
public static java.util.concurrent.ExecutorService getCommonPool()
-
getCommonScheduledPool
public static java.util.concurrent.ScheduledExecutorService getCommonScheduledPool()
-
getInstance
public static RestCommonThreadPool getInstance()
-
getNumbersOfThreads
public static int getNumbersOfThreads()
-
-