美文网首页
periodic+subsequent+commence+enc

periodic+subsequent+commence+enc

作者: 海德堡绝尘 | 来源:发表于2018-02-28 17:10 被阅读9次

API来源:
public interface ScheduledExecutorService extends ExecutorService:
ScheduledExecutorService#scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit);

public ScheduledFuture<?> scheduleAtFixedRate(Runnable command,
                                                  long initialDelay,
                                                  long period,
                                                  TimeUnit unit);

Creates and executes a periodic action that becomes enabled first after the given initial delay, and subsequently with the given period; that is executions will commence after initialDelay then initialDelay+period, then initialDelay + 2 * period, and so on. If any execution of the task encounters an exception, subsequent executions are suppressed. Otherwise, the task will only terminate via cancellation or termination of the executor. If any execution of this task takes longer than its period, then subsequent executions may start late, but will not concurrently execute.
创建并执行一个定期动作,在给定的初始延迟之后首先变为启用,然后在给定的时间段内启用; 即执行将在initialDelay之后开始,然后是initialDelay +周期,然后是initialDelay + 2 *周期,依此类推。 如果任务的任何执行遇到异常,则后续执行被禁止。 否则,任务将仅通过取消或终止执行者而终止。 如果此任务的任何执行时间超过其时间段,则后续执行可能会迟到,但不会同时执行。

  • periodic [,pɪərɪ'ɒdɪk] adj. 周期的;定期的
    Teachers meet periodically to discuss progress. 教师定期开会讨论进度.
    -sequent ['sikwənt] adj. 连续的;其次的; the sequent risk 后续的风险
  • subsequent ['sʌbsɪkwənt] adj. 后来的,随后的
  • subsequently ['sʌbsɪkwəntli] adv. 随后,其后;后来
    The book was subsequently translated into 15 languages. 该书后来被译成 15 种语言。
  • commence [kə'mɛns] v. 开始;着手;<英>获得学位 to begin or to start something
    This means that the whole of the file does not have to be read into memory before processing of the file can commence. 这意味着不必将整个文件读取到内存中才能着手处理文件。
  • encounter [ɪn'kaʊntɚ] vt. 遭遇,邂逅;遇到
    We encounter so many problems in our work. 我们在工作中遇到如此多的问题
  • suppressed suppress [sə'prɛs] vt. 抑制;镇压;废止
    This book has been suppressed. 这本书已被禁止出版发行。

相关文章

网友评论

      本文标题:periodic+subsequent+commence+enc

      本文链接:https://www.haomeiwen.com/subject/sjkixftx.html