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

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


  public void afterPropertiesSet() {
    if (logger.isInfoEnabled()) {
      logger.info("Initializing ScheduledExecutorService" +
          (this.beanName != null ? " '" + this.beanName + "'" : ""));
    }
    ScheduledExecutorService executor =
        createExecutor(this.poolSize, this.threadFactory, this.rejectedExecutionHandler);

    // Register specified ScheduledExecutorTasks, if necessary.
    if (!ObjectUtils.isEmpty(this.scheduledExecutorTasks)) {
      registerTasks(this.scheduledExecutorTasks, executor);
View Full Code Here


  public void afterPropertiesSet() {
    if (logger.isInfoEnabled()) {
      logger.info("Initializing ScheduledExecutorService" +
          (this.beanName != null ? " '" + this.beanName + "'" : ""));
    }
    ScheduledExecutorService executor =
        createExecutor(this.poolSize, this.threadFactory, this.rejectedExecutionHandler);

    // Register specified ScheduledExecutorTasks, if necessary.
    if (!ObjectUtils.isEmpty(this.scheduledExecutorTasks)) {
      registerTasks(this.scheduledExecutorTasks, executor);
View Full Code Here

    }
  }

  public void testShutdownNowIsPropagatedToTheExecutorOnDestroy() throws Exception {
    MockControl mockScheduledExecutorService = MockControl.createNiceControl(ScheduledExecutorService.class);
    final ScheduledExecutorService executor = (ScheduledExecutorService) mockScheduledExecutorService.getMock();
    executor.shutdownNow();
    mockScheduledExecutorService.setReturnValue(null);
    mockScheduledExecutorService.replay();

    ScheduledExecutorFactoryBean factory = new ScheduledExecutorFactoryBean() {
      protected ScheduledExecutorService createExecutor(int poolSize, ThreadFactory threadFactory, RejectedExecutionHandler rejectedExecutionHandler) {
View Full Code Here

    mockScheduledExecutorService.verify();
  }

  public void testShutdownIsPropagatedToTheExecutorOnDestroy() throws Exception {
    MockControl mockScheduledExecutorService = MockControl.createNiceControl(ScheduledExecutorService.class);
    final ScheduledExecutorService executor = (ScheduledExecutorService) mockScheduledExecutorService.getMock();
    executor.shutdown();
    mockScheduledExecutorService.setVoidCallable();
    mockScheduledExecutorService.replay();

    ScheduledExecutorFactoryBean factory = new ScheduledExecutorFactoryBean() {
      protected ScheduledExecutorService createExecutor(int poolSize, ThreadFactory threadFactory, RejectedExecutionHandler rejectedExecutionHandler) {
View Full Code Here

  public void afterPropertiesSet() {
    if (logger.isInfoEnabled()) {
      logger.info("Initializing ScheduledExecutorService" +
          (this.beanName != null ? " '" + this.beanName + "'" : ""));
    }
    ScheduledExecutorService executor =
        createExecutor(this.poolSize, this.threadFactory, this.rejectedExecutionHandler);

    // Register specified ScheduledExecutorTasks, if necessary.
    if (!ObjectUtils.isEmpty(this.scheduledExecutorTasks)) {
      registerTasks(this.scheduledExecutorTasks, executor);
View Full Code Here

TOP

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

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.