public static Executor createExecutor ( int threadPoolSize , int threadPriority , QueueProcessingType tasksProcessingType ) { boolean lifo = tasksProcessingType == QueueProcessingType . LIFO ; BlockingQueue < Runnable > taskQueue = lifo ? new LIFOLinkedBlockingDeque < Runnable > ( ) : new LinkedBlockingQueue < Runnable > ( ) ; return new ThreadPoolExecutor ( threadPoolSize , threadPoolSize , 0L , TimeUnit . MILLISECONDS , taskQueue , createThreadFactory ( threadPriority , "uil-pool-" ) ) ; }
Creates default implementation of task executor