Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
爱吃血肠
spring-framework
提交
af674bfa
S
spring-framework
项目概览
爱吃血肠
/
spring-framework
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
spring-framework
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
af674bfa
编写于
11月 20, 2009
作者:
D
David Syer
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
RESOLVED - issue SPR-6398: Document attributes in @Scheduled and friends
http://jira.springframework.org/browse/SPR-6398
上级
57163609
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
21 addition
and
1 deletion
+21
-1
org.springframework.context/src/main/java/org/springframework/scheduling/annotation/Scheduled.java
.../org/springframework/scheduling/annotation/Scheduled.java
+20
-0
org.springframework.context/src/main/resources/org/springframework/scheduling/config/spring-task-3.0.xsd
...org/springframework/scheduling/config/spring-task-3.0.xsd
+1
-1
未找到文件。
org.springframework.context/src/main/java/org/springframework/scheduling/annotation/Scheduled.java
浏览文件 @
af674bfa
...
...
@@ -31,6 +31,7 @@ import java.lang.annotation.Target;
* <code>void</code> return type.
*
* @author Mark Fisher
* @author Dave Syer
* @since 3.0
* @see ScheduledAnnotationBeanPostProcessor
*/
...
...
@@ -39,10 +40,29 @@ import java.lang.annotation.Target;
@Documented
public
@interface
Scheduled
{
/**
* A cron-like expression, extending the usual UN*X definition to include
* triggers on the second as well as minute, hour, day of month, month
* and day of week. e.g. <code>"0 * * * * MON-FRI"</code> means once
* per minute on weekdays (at the top of the minute - the 0th second).
*
* @return an expression that can be parsed to a cron schedule
*/
String
cron
()
default
""
;
/**
* Execute the annotated method with a fixed period between the end
* of the last invocation and the start of the next.
*
* @return the delay in milliseconds
*/
long
fixedDelay
()
default
-
1
;
/**
* Execute the annotated method with a fixed period between invocations.
*
* @return the period in milliseconds
*/
long
fixedRate
()
default
-
1
;
}
org.springframework.context/src/main/resources/org/springframework/scheduling/config/spring-task-3.0.xsd
浏览文件 @
af674bfa
...
...
@@ -20,7 +20,7 @@
<xsd:element
name=
"annotation-driven"
>
<xsd:annotation>
<xsd:documentation>
<![CDATA[
Enables the detection of @Async annotations on any Spring-managed object. If present,
Enables the detection of @Async an
d @Scheduled an
notations on any Spring-managed object. If present,
a proxy will be generated for executing the annotated methods asynchronously.
]]>
</xsd:documentation>
</xsd:annotation>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录