Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu committed Mar 4, 2016
1 parent b9bf970 commit 322ded1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elastic-job-doc/content/post/user_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class MyElasticJob extends AbstractSimpleElasticJob {
作业执行时会将`fetchData`的数据传递给`processData`处理,其中`processData`得到的数据是通过多线程(线程池大小可配)拆分的。如果采用流式作业处理方式,建议`processData`处理数据后更新其状态,避免`fetchData`再次抓取到,从而使得作业永远不会停止。`processData`的返回值用于表示数据是否处理成功,抛出异常或者返回`false`将会在统计信息中归入失败次数,返回`true`则归入成功次数。

```java
public class MyElasticJob extends AbstractIndividualSequenceDataFlowElasticJob<Foo> {
public class MyElasticJob extends AbstractThroughputDataFlowElasticJob<Foo> {

@Override
public List<Foo> fetchData(JobExecutionMultipleShardingContext context) {
Expand Down

0 comments on commit 322ded1

Please sign in to comment.