欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 教育 > 培训 > Java Executor RunnableScheduledFuture 源码

Java Executor RunnableScheduledFuture 源码

2025/2/24 10:23:02 来源:https://blog.csdn.net/qq_39288456/article/details/143430871  浏览:    关键词:Java Executor RunnableScheduledFuture 源码

前言


 相关系列

  • 《Java & Executor & 目录》
  • 《Java & Executor & RunnableScheduledFuture & 源码》
  • 《Java & Executor & RunnableScheduledFuture & 总结》
  • 《Java & Executor & RunnableScheduledFuture & 问题》
     

 涉及内容

  • 《Java & Executor & 总结》
  • 《Java & Executor & RunnableFuture & 总结》
  • 《Java & Executor & ScheduledFuture & 总结》
     
     

源码


/** ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.*********************//******* Written by Doug Lea with assistance from members of JCP JSR-166* Expert Group and released to the public domain, as explained at* http://creativecommons.org/publicdomain/zero/1.0/*/package juc;/*** A {@link ScheduledFuture} that is {@link Runnable}. Successful execution of the {@code run} method causes completion* of the {@code Future} and allows access to its results.* 一一个是可运行的计划未来。run()方法的成功执行会导致未来完成并且允许访问它的结果。** @param <V> The result type returned by this Future's {@code get} method 通过未来的get()方法返回的结果类型* @author Doug Lea* @see FutureTask* @see Executor* @since 1.6*/
public interface RunnableScheduledFuture<V> extends RunnableFuture<V>, ScheduledFuture<V> {/*** Returns {@code true} if this task is periodic. A periodic task may re-run according to some schedule. A non-periodic* task can be run only once.* 如果当前任务是周期性的则返回true。一个周期性的任务可能根据某些计划重复运行。一个非周期性的任务执行运行一次。** @return {@code true} if this task is periodic 如果当前任务是周期性的则返回true。* @Description: ------------------------------------------------------------- 名称 -------------------------------------------------------------* @Description: 是否周期* @Description: ------------------------------------------------------------- 作用 -------------------------------------------------------------* @Description: 判断当前可运行计划未来是否允许周期性执行,是则返回true;否则返回false。* @Description: ------------------------------------------------------------- 逻辑 -------------------------------------------------------------* @Description: ~* @Description: ------------------------------------------------------------- 注意 -------------------------------------------------------------* @Description: ~* @Description: ------------------------------------------------------------- 疑问 -------------------------------------------------------------* @Description: ~*/boolean isPeriodic();}

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

热搜词