Package org.jasig.portal.utils.threading

Examples of org.jasig.portal.utils.threading.PriorityThreadFactory


     */
    public ThreadFiringStatsRecorder(int initialThreads, int maxThreads, int threadPriority) {
        this.threadPool
            = new ThreadPoolExecutor(initialThreads, maxThreads, 0L,
                    TimeUnit.MILLISECONDS, new LinkedBlockingQueue(),
                    new PriorityThreadFactory(threadPriority));
   
View Full Code Here


                "threadPool_shared = " + sharedPool,
                x
                );
        }

        cErrorThreadPool = new ThreadPoolExecutor(20, 20, 0L, TimeUnit.MILLISECONDS, new LinkedBlockingQueue(), new PriorityThreadFactory(threadPriority, "ErrorRendering", PortalSessionManager.getThreadGroup()));

       
        if( sharedPool )
        {
            cSharedThreadPool = new ChannelRenderThreadPoolExecutor(activeThreads, maxActiveThreads, initialThreads, maxThreads, 0L, TimeUnit.MILLISECONDS, new LinkedBlockingQueue(), new PriorityThreadFactory(threadPriority, keyBase, PortalSessionManager.getThreadGroup()));
        }
        else
        {
            this.mThreadPool = new ChannelRenderThreadPoolExecutor(activeThreads, maxActiveThreads, initialThreads, maxThreads, 0L, TimeUnit.MILLISECONDS, new LinkedBlockingQueue(), new PriorityThreadFactory(threadPriority, keyBase, PortalSessionManager.getThreadGroup()));
        }
    }
View Full Code Here

  private int threadPriority = DEFAULT_THREAD_PRIORITY;

  protected void afterPropertiesSetInternal() throws Exception {
    this.threadPool = new ThreadPoolExecutor(initialThreads, maxThreads,
        0L, TimeUnit.MILLISECONDS, new LinkedBlockingQueue(),
        new PriorityThreadFactory(threadPriority, "Priority", PortalSessionManager.getThreadGroup()));
  }
View Full Code Here

                );
        }

        if( sharedPool )
        {
            cSharedThreadPool = new ThreadPoolExecutor(initialThreads, maxThreads, 0L, TimeUnit.MILLISECONDS, new LinkedBlockingQueue(), new PriorityThreadFactory(threadPriority));
        }
        else
        {
            this.mThreadPool = new ThreadPoolExecutor(initialThreads, maxThreads, 0L, TimeUnit.MILLISECONDS, new LinkedBlockingQueue(), new PriorityThreadFactory(threadPriority));
        }
    }
View Full Code Here

TOP

Related Classes of org.jasig.portal.utils.threading.PriorityThreadFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.