Package edu.emory.mathcs.backport.java.util.concurrent

Examples of edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor


        this.clockDaemon = clockDaemon;
    }

    public ScheduledThreadPoolExecutor getScheduledThreadPoolExecutor() {
        if (clockDaemon == null) {
            clockDaemon = new ScheduledThreadPoolExecutor(5, new ThreadFactory() {
                public Thread newThread(Runnable runnable) {
                    Thread thread = new Thread(runnable, "ActiveMQ Cleanup Timer");
                    thread.setDaemon(true);
                    return thread;
                }
View Full Code Here


   * @see edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor
   */
  protected ScheduledExecutorService createExecutor(
      int poolSize, ThreadFactory threadFactory, RejectedExecutionHandler rejectedExecutionHandler) {

    return new ScheduledThreadPoolExecutor(poolSize, threadFactory, rejectedExecutionHandler);
  }
View Full Code Here

   * @see edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor
   */
  protected ScheduledExecutorService createExecutor(
      int poolSize, ThreadFactory threadFactory, RejectedExecutionHandler rejectedExecutionHandler) {

    return new ScheduledThreadPoolExecutor(poolSize, threadFactory, rejectedExecutionHandler);
  }
View Full Code Here

   * @see edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor
   */
  protected ScheduledExecutorService createExecutor(
      int poolSize, ThreadFactory threadFactory, RejectedExecutionHandler rejectedExecutionHandler) {

    return new ScheduledThreadPoolExecutor(poolSize, threadFactory, rejectedExecutionHandler);
  }
View Full Code Here

    {
        if (tf == null)
        {
            tf = new MonitorThreadFactory();
        }
        timeoutService = new ScheduledThreadPoolExecutor(1, tf);
    }
View Full Code Here

        }

        this.recover_find_active_workspaces();

        // todo: options etc. by wrapping as IoC bean
        this.scheduledExecutor = new ScheduledThreadPoolExecutor(2);
        this.scheduledExecutor.setRemoveOnCancelPolicy(true);
        this.scheduledExecutor.setMaximumPoolSize(5);

        // Pass in the general executor, not the scheduled one.  Sweeper uses that to
        // execute any tasks it creates.
View Full Code Here

        this.stubConf = stubConfigurator;

        // This is different than executorService, which is what to use for
        // callback task threads.
        // This is for running the poll tasks themselves.
        this.scheduled = new ScheduledThreadPoolExecutor(DEFAULT_POOL_SIZE);

        this.scheduled.setRemoveOnCancelPolicy(true);

        this.scheduled.setMaximumPoolSize(maxThreads);
View Full Code Here

    {
        if (tf == null)
        {
            tf = new MonitorThreadFactory();
        }
        timeoutService = new ScheduledThreadPoolExecutor(1, tf);
    }
View Full Code Here

TOP

Related Classes of edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor

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.