Package org.springside.modules.utils.Threads

Examples of org.springside.modules.utils.Threads.WrapExceptionRunnable


   * 启动分发线程, 使用传入的scheduler线程池.
   */
  public void start(ScheduledExecutorService scheduledThreadPool) {
    scriptExecutor.loadFromFile(scriptPath);

    dispatchJob = scheduledThreadPool.scheduleAtFixedRate(new WrapExceptionRunnable(this), 0, intervalMillis,
        TimeUnit.MILLISECONDS);
  }
View Full Code Here


  /**
   * 启动抢注线程, 使用传入的scheduler线程池.
   */
  public void start(ScheduledExecutorService scheduledThreadPool) {
    hostId = generateHostId();
    electorJob = scheduledThreadPool.scheduleAtFixedRate(new WrapExceptionRunnable(this), 0, intervalSecs,
        TimeUnit.SECONDS);
    logger.info("masterElector for {} start, hostName:{}.", masterKey, hostId);
  }
View Full Code Here

TOP

Related Classes of org.springside.modules.utils.Threads.WrapExceptionRunnable

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.